Questions tagged [solr-query-syntax]
175 questions
0
votes
2 answers
Isnull equivalent in SOLR
My query in sql server is like where isnull(id,'3') = 3 which would give me all null values as well as values equal to 3. I want to achieve the same in SOLR but not able to get it. I tried
id:3 OR -id:[* TO *]
but it gave me no result whereas on…

Hitesh
- 3,449
- 8
- 39
- 57
0
votes
0 answers
Solr multiple facet with ex and tag functions
I am using Solr 4.10 and our requirement is to have multiple facets. Each of the facet should filter should impact only the selected facet, but not other facets.
For example, lets say there are two facets BRAND and TYPE. When the user select brand…

user2121940
- 1
- 1
0
votes
1 answer
Find user's followers by username and name search with SOLR & PHP
What I'm trying to do is create an input field that, as you type, it will search for users who follow you, based on the typed username and/or name.
I'm trying to use SOLR because it's fast and I'm unable to use MySQL's LIKE feature, but I'm running…

stwhite
- 3,156
- 4
- 37
- 70
0
votes
2 answers
Is it possible to search in DBpedia based on popularity
I do query using all DBpedia records for different fields,
'birthDate:' + '([\"1850-06-05\" TO \"2000-06-05\"]) AND birthPlace: *' + search_data["birthPlace"] + '* AND priority:' + self.formatParameterForSolr(search_data["priority"]) + ' AND NOT…

user123
- 5,269
- 16
- 73
- 121
0
votes
1 answer
Boost Solr results if the value of an attribute is within a list or not
I have a query similar to this:
http://solr1:8983/solr/select?defType=lucenePlusSort&fl=pk_i,score&json.nl=map&qt=standard&rows=36&sort=&start=0&wt=json&q=type_s:Product+AND+is_valid_b:true
I need to boost the results where user_id_i:(123 OR 222 OR…

Razvan
- 43
- 5
0
votes
1 answer
Solr : How to add conditions in Boost function query
I'm trying to see if it's possible to use conditions within a Solr boost function query. Right now,I'm using the following function to boost on Likes data.
bf=recip(ms(NOW/DAY,PublishDate),3.16e-11,1,1)^2.0 sum(Likes,2)
What I would like to do is…

Shamik
- 1,671
- 11
- 36
- 64
0
votes
2 answers
Need to check for range in Solr if function
We are just building a Solr index for a knowledge base and I have some problems implementing
boosting.
First of all: We want to have multiplicative boosting and no additive.
And: The more hits a document has, the more it should be boosted, but only…

mindfxxxedCoder
- 80
- 9
0
votes
3 answers
Solr conditional query fields (qf)
Is it possible to define query fields in Solr based on certain conditions? For e.g. I've three fields text, title and product.The solr config definition:
text^0.5 title^10.0 Product
What I'm looking here is to include "product"…

Shamik
- 1,671
- 11
- 36
- 64
0
votes
2 answers
Solr : Search document with q and fq parameters
I have following fields for my solr collection
Fields :
projectid
folderid
fileid
filename
I want to search particular file based on projectid & folderid
Which one gives more performance using
1)
q:projectid:(PROJECTID) AND…

mcacorner
- 1,304
- 3
- 22
- 45
0
votes
2 answers
How do I make Solr return an empty result?
I want my search tool to have a similar behaviour to Google Search when all of the elements entered by the user are excluded (eg.: user input is -obama). In those cases, Google returns an empty result. In my current code, my program just makes an…

Lawrence Lin Murata
- 61
- 4
0
votes
0 answers
Solr atomic update does not work for me
I am going to do atomic update on solr with http request. I want to update the document with id:"http://www.entekhab.ir" setting view="true" I did call both of these http requests, but none of them works for me. Could you please tell me what part I…

Ali
- 1,759
- 2
- 32
- 69
0
votes
1 answer
solr querying over multiple fields syntax
I have a document that looks like this:
2014-02-17T17:17:01Z
57373
German chancellor Angela Merkel has proposed some stuff, well done her.

Jarede
- 3,310
- 4
- 44
- 68
0
votes
1 answer
Not able to query on binary field in solr
I'm not able to query on binary data field. I created the following field with binary field type.
Field type definition is the default one.

buddy86
- 1,434
- 12
- 20
0
votes
1 answer
filter Query not working properly with comma containing search strings in Solr
FilterQuery is not working correct/expected when SearchString contains , (comma).
From Solr-Admin Screen:
QueryString (SearchString) - Word1,Word2
without any queryfilter - Returns me all the results for 'Word1,word2'
QueryString (SearchString) -…

Enigma
- 749
- 1
- 13
- 35
0
votes
1 answer
Solr query not operator for filtering string array
I want to return all the documents which doesn't have "hello" string in the "test" key.
So, I created following query which is not filtering the documents containing "hello"
q: -test:("hello")
[{
"test":["hello", "second"],
id:123
},
{
…

cherry
- 137
- 2
- 13