Questions tagged [solr-query-syntax]
175 questions
1
vote
1 answer
Can we have multiple FilterQuery in Solr?
I'm using Solr 3.6 version and in one of my query I need to apply Query and filter Query for some requirement.
Scenario - I want to search one keyword under particular search criteria so I'm putting my keyword as 'q' in Solr Query and applying…

Enigma
- 749
- 1
- 13
- 35
1
vote
1 answer
Solr Query Max Condition
I am using solr 4.3.0 for my web site search. I want to do something using solr but when I query, I get an error. In my situation I have 40000 products, and I want to excludes 1500 products with query. This is the my query
-brand-slug:reebok OR…

Ali Bahsisoglu
- 83
- 1
- 7
1
vote
1 answer
Custom Request Handlers/Components with Solr-4.x
I was referring this http://sujitpal.blogspot.in/2011/02/solr-custom-search-requesthandler.html for making custom handlers in solr. They are pretty nice but conform to the old apis. Is there any similar example I can refer to for solr-4.3.0.

Apurv
- 4,458
- 2
- 21
- 31
1
vote
1 answer
solr query in broadleaf
I am new to Solr and Broadleaf.
I am working in Broadleaf, in that they using the solr search. that's perfectly fine and working condition.
Product table has category field and broadleaf searches by category right now
As per requirement i extend the…

Ankit
- 157
- 1
- 3
- 18
1
vote
1 answer
A public Github repo not found via search
using the following search query...
https://github.com/search?q=repo%3AOpeningDesign%2FOpeningDesign+GET&p=1&ref=searchbar&type=Code&l=
..on this public repo: https://github.com/OpeningDesign/OpeningDesign
nothing shows up.
Am i missing something?

Ryan Schultz
- 307
- 4
- 17
1
vote
1 answer
Setting up Solr and Querying it
I am new to Solr.
I am not able to find out a proper document which could help me understand what all do I need to add in the solrconfig.xml and what is to be removed.
My SolrDocument would contain id, field1, field2. Out of the 2 fields, I want to…

JHS
- 7,761
- 2
- 29
- 53
1
vote
2 answers
How to enforce an exact match to get the highest priority?
I am indexing and searching 5 fields, which are tokenized/filtered in various ways.
BUT, I would like that when I search, if the query I entered matches a value in field 1, it will be the top result I get back.
How would I define:
The field
The…

Itay Moav -Malimovka
- 52,579
- 61
- 190
- 278
1
vote
1 answer
SolrQuery does not returns results for less than 3 characters
My code is as below:
SolrQuery query = new SolrQuery();
query.setQuery(q.trim());
try {
QueryResponse res = getSolrServer().query(query);
return res.getResults();
} catch (SolrServerException sse) {
log.error(sse);
…

vaibhav
- 3,929
- 8
- 45
- 81
1
vote
2 answers
what is the difference between filter and complex query in SOLR?
Say I want to fetch all users who belong to org number 2 and the have the string "baba" in them. I can do either:
q=baba AND org:2
OR
q=baba&fq=org:2
I am not sure what is the difference. Can some one shade some light.

Itay Moav -Malimovka
- 52,579
- 61
- 190
- 278
1
vote
2 answers
How to force solr QParserPlugin not to use whitespace tokenizer for Keyword fields?
I have keyword field in Solr schema.
When I try to search this field with…

yura
- 14,489
- 21
- 77
- 126
0
votes
1 answer
How to make a condition on multi-valued field in solr
My SOLR is used to store events.
Events can repeat.
I need to filter my query to fetch events in a certain date range.
Data for example:
Event A has repeats in the following dates 1st, 10th, 15th, 29th
Event B has repeats in the following dates…

Itay Moav -Malimovka
- 52,579
- 61
- 190
- 278
0
votes
1 answer
How to order a result set by a field with multiple values?
In my SOLR I keep events that repeats themselves.
So, event A has something a repeat on the 11th 12th and 29th
Event b has repeat on the 2nd and 15th
Event c has on the 12th and 29th
I want to fetch the events ordered by their dates, I want it to be…

Itay Moav -Malimovka
- 52,579
- 61
- 190
- 278
0
votes
0 answers
MinHash Query Parser for Solr: "sim" param not working as expected & How to normalize "hash_score" result?
the "sim" param asks me what minimum similarity score I want, I input that. But it seems to fully ignore what minimum score I want and returns me any document that has at least one matching word to the query's string.
Secondly, how do I normalize…

jasonbored
- 1
- 1
0
votes
0 answers
How to retrieve the matching fuzzy term and its offset in solr and the payload?
Part of the managed-schema.xml

marinko
- 55
- 1
- 6
0
votes
0 answers
How to get a human readable value of facet in solr
When I search SOLR with query (grouptype is my field name)
/select?q=grouptype:*&wt=json
I get group values in human readable format ex: Type 1, Type 2 etc.
But when I do a faceted search
/select?q=*:*&rows=0&facet=on&facet.field=grouptype&wt=json
I…

Prashant Onkar
- 414
- 3
- 15