Questions tagged [solr-query-syntax]
175 questions
0
votes
1 answer
"qt" param in Solr 5.5
I'm migrating solr from 4.6 version to 5.5, we have separate request handlers in which we provide query without field name, like q=book. But for select request handler, we need to pass the request with field name, like q=type:book.
if i give without…

User1203
- 77
- 2
- 11
0
votes
1 answer
issue with multiple queries in solr
We are facing a strange issue with the solr. When we query with particular field the query is not returning any values.
Query 1: I am specifying an isbn number and extracting all the values available in publisher filed. Which is working as…

abhi pm
- 41
- 1
- 7
0
votes
0 answers
SolR phrase query with minimum match
I have a phrase which I want to find in SolR for example: (Ann OR Annie) is walking her dog. I want to be able to find it in SolR documents like:
Ann is walking a dog (changed token)
Ann is walking dog (missing token)
Ann is walking her wonderful…

Filu
- 41
- 1
- 5
0
votes
1 answer
Adding filter query to Sort alone in Solr
We just want to apply filter query to sort alone. is there any way to do that in solr? As we apply group query, we can't provide fq parameter directly.
Main issue: we are sorting by price field. Price is available for two categories. While grouping…

User1203
- 77
- 2
- 11
0
votes
1 answer
JSON returned by Solr
I'm using Solr in order to index my data.
Through the Solr's UI I added, in the Schema window, two fields: word, messageid
After I made the following query post:
curl -X POST -H "Content-Type: application/json"…

HelloIT
- 172
- 2
- 22
0
votes
1 answer
Solr search with a single round bracket not working
I am new to Solr.
I am trying to search for records containing single round bracket either '(' or ')'.
The query for searching the record is as follows:
q=( ( name: (*\(abc*) ) )
The above query breaks the solr search.
I am escaping the ( )…

Soham Nakhare
- 425
- 4
- 18
0
votes
0 answers
Some word is not indexed in solr properly
I don't know what is going wrong.
http://IP_ADDRESS/solr/CORE_NAME/select?indent=on&q=Bangalore&wt=json
There are more than 100 records which contains the word Bangalore in my database. However the the results contain just 2 records.
However,
The…

Kabhi
- 135
- 1
- 12
0
votes
1 answer
Solr, filter with priority
I need to filter documents by two fields name and address.
I need to get results with names contains 'mar' first and then results with addresses contains 'mar'. But I'm getting randomly filtered results.
Like:
(name:(mar))^20 OR…

wowbrowser search
- 345
- 1
- 3
- 11
0
votes
1 answer
How to Solr query condition if only one value > 0 in array field
I have an array field in Solr.
example:
"variant_qty": [
1,
0,
7,
9
]
I want to do that : get records if one value > 0 others must be zero.
how i can do that with solr query ?

user2677802
- 1
- 1
- 3
0
votes
1 answer
Solr query works in browser but not using RestTemplate org.apache.solr.search.SyntaxError: Cannot parse
I'm trying to run a solr query at the start of my tests to get a bunch of listings which I will then use in the test run.
If I make this request in Chrome I get the json…

MisterMan
- 45
- 6
0
votes
1 answer
Apache solr search issue
i've got a search issue with apachesolr.
For example
The contents that i've indexed are:
Tiramisu d'hiver
Velouté d'hiver
Minestrone d'hiver crémeux,
Smoothie version hiver
when i search "hiver", i get only Smoothie version hiver as results.
When…

j.b
- 151
- 1
- 7
- 17
0
votes
1 answer
SQL Equivalence of Solr Query
In my spring boot project, i connect to a solr server. Instead of solr queries I need to use sql queries. I can get expected results for basic queries like select * from reportCore, but I cannot add filters or specify field names.
What i would like…
user7289227
0
votes
2 answers
solr boost query with separate sort
I want to demote all documents that have inv=0(possible values from 0 to 1000) to the end of the result set. i have got other sorting options like name desc also as part of the query.
For example below are my solr documents
Doc1 : name=apple ,…

user3085317
- 29
- 2
- 9
0
votes
2 answers
Solr Sorting by Relevancy and Containing of Multiple fields
I am using Solr 5.3.0 to make a news searching system. Assume I have these following fields of news:{
Title
Content
Date
NewsType
}
I am searching both of the company name and the manager name in this searching system. Lets say "Stark Industries"…

Summer Li
- 1
- 2
0
votes
1 answer
Normalize response through multiple joins in a single query with solr
It's possible to perform a query to the following solr collection
{
"id":1,
"book_name":"Solr book",
"category":[1,2,3],
"author":[1]
},
{
"id":1,
"book_name":"Rocky",
"category":[3],
"author":[2]
},
{
…

jj-aa
- 1,019
- 5
- 19
- 39