Questions tagged [solr-query-syntax]

175 questions
2
votes
2 answers

How to OR two joins in Solr

I have the following statement: ({!join from=project_uuid to=id}type:EM_PM_Timerecord AND created:[2015-01-01T01:00:00Z TO 2016-01-01T01:00:00Z]) OR ({!join from=project_uuid to=id}type:EM_CM_Request_Member AND created:[2015-01-01T01:00:00Z TO…
Mathias Mahlknecht
  • 281
  • 2
  • 6
  • 16
2
votes
4 answers

Solr not including fields having empty value in result

Indexed data on Solr contains some fields which are having empty values. When I run q=*:* it does not include fields having empty values. What parameter do I need to pass while query to get fields having empty values in the result. EDIT : I am…
Prometheus
  • 549
  • 1
  • 7
  • 18
2
votes
1 answer

Remove value from multi-value field via Atomic Updates with wildcard in uniquekey?

I have a multi-valued field (custprc), with an integer (key), an underscore, then a decimal value. The field looks like this: {1234_11.22, 1235_12.00, 1236_11.44} I can remove an entry from that field using either the remove or removeregex command…
2
votes
1 answer

Solr Exact match boost Reduce the results

i have two fields, one is copy field. Its…
User1234
  • 205
  • 3
  • 9
2
votes
0 answers

How to retrieve all fields from a Solr collection?

Just imagine I have a Solr cluster with 10 nodes. I create a collection name "Test" (numShards=10, replicationFactor=1) and add 1000 documents with 2 or 3 different schemas (eg: doc1(id, field1, field2), doc2(id, field3, field4), doc3(id, field1,…
Dennis
  • 23
  • 4
2
votes
1 answer

Solr - Successful query with numfound > 0 but docs returned are empty?

I'm pretty new to Solr but something is not working as expected... I'm searching for documents where the name = 'the*'. This query is working since I'm getting a numFound > 0. But the docs in the response are empty even though I have set &fl=* I…
Romain
  • 1,511
  • 1
  • 10
  • 13
2
votes
2 answers

Search with multiple parameters in solr

Currently I having the query like this q=mysearchparameters It is working fine, and I think it will search for this keyword in all the fields, now I want to retrieve data only based in some specific field like…
2
votes
1 answer

External file field not working & throws null pointer exception

I configured my external file field configuration like follows: < field name="idRank" type="idRankFile" indexed="true" stored="true" omitNorms="true" omitTermFreqAndPositions="true" valType="pfloat" /> < fieldType name="idRankFile"…
gangatharan
  • 781
  • 1
  • 12
  • 28
2
votes
1 answer

How to group the result of two facet query in a single query..?

I have a set of document, that contains sender mail ids and recipient mail ids. When I use facet query like facet.field=senderemailid&facet.limit=10&facet.offset=0. So that I can get total no of mail sent by that corresponding mail id Result was <…
gangatharan
  • 781
  • 1
  • 12
  • 28
2
votes
2 answers

Solr 4.0, TextField query gives NullPointerException

I have a field in my Solr schema like - Type - Declaration - This description field has values for some…
JHS
  • 7,761
  • 2
  • 29
  • 53
2
votes
2 answers

Is it possible to return all results from Solr if the user query contains only stopwords?

I would like Solr to return all results if a user query contains only stopwords, e.g. q=the, (by default Solr returns 0 results). Is there any flag in Solr config that I can switch on, or any Solr query syntax construction I can use to achieve…
Aliya
  • 1,168
  • 12
  • 17
2
votes
1 answer

Solr date range query

I'm trying to do a date range query but I have always the same error. The problem is when I add the + character into the date range The request: http://192.168.10.202:8080/solr/PageRequests/select/?q=request_datetime:[2011-09-01T00:21:57Z TO…
Yago Riveiro
  • 727
  • 13
  • 28
1
vote
1 answer

Solr query syntax such like SQL “IN” condition

A Solr query problem here. For example, a group checking query: There’s a string spitted by commas field in Solr, such as “Group1, Group2, Group3”. I have parameter which is a list of string, such as “Group3”, “Group4”, “Group5”. In this case the…
卢声远 Shengyuan Lu
  • 31,208
  • 22
  • 85
  • 130
1
vote
0 answers

Disable queryResultCache for a single Solr query

Disclaimer: I'm a Solr newbie so I apologize in advance if this sounds lame. I'm trying to optimize Solr queries running on an instance which has queryResultCache turned on. Caching restricts my ability to experiment with queries and analyze how…
Nishanth
  • 71
  • 1
  • 4
1
vote
1 answer

Escape Special Character In Solr

I'm getting following error while escaping special character '&' after running http://localhost:8983/solr/amazon_products/select?q=*:*&fq=Category:"Toys \& Games " this query in Solr { "responseHeader": { "zkConnected": true, "status":…
Swastik
  • 144
  • 2
  • 19
1 2
3
11 12