Questions tagged [query-parser]

69 questions
0
votes
1 answer

Solr edismax Query Parser Operators

I have two queries about edismax parser ---> 1.Does edismax parser support && || for AND and OR operators ? 2.Also Does is support 'not' for NOT operator like and/or for AND/OR ? If edismax parser don't support this, how can I extend this parser…
Enigma
  • 749
  • 1
  • 13
  • 35
0
votes
1 answer

Combination of AND , OR with NOT in grouping

test:1 AND NOT bool:true returns 5 documents but test:1 AND (NOT bool:true) returns 0 documents Why? Please Explain me the value of parentheses in lucene query formation
rrsk
  • 124
  • 4
  • 13
0
votes
1 answer

Solr : Search with special character with Phrase search

We need to make Solr Search like "Success & Failure" "Working 50%" but Solr query parser eliminates all special characters from search, although if i add escape sequence to it. my search query is as mentioned below…
meghana
  • 907
  • 1
  • 20
  • 45
0
votes
1 answer

Lucene: How to restrict the number of hits?

I have a webpage form which carries out a search of all the photos that users have uploaded to the website. The problem is that the Lucene search is currently retrieving all photos that meet the search criteria even though we are only displaying 21…
Victoria
  • 901
  • 3
  • 15
  • 30
0
votes
1 answer

How to detect an entered search query as a surround query or as a normal lucene core library query

Is there a way where we can find out whether a query is for the normal lucene core library or for the surround contrib module. Can we merge a surround queryparser with the lucene core library's queryparser, so that we have only one queryparser which…
Rajath
  • 215
  • 5
  • 13
0
votes
1 answer

Solr Edismax query wrongly produces result

I have 2 types of solr query.One uses EDisMax parser and other one uses standard query parser as default.Following are the 2 query I have used.Purpose of the query is document that doesn't contains following word ELM,PST,June. EDisMax Query q=…
gangatharan
  • 781
  • 1
  • 12
  • 28
0
votes
1 answer

Lucene QueryParser issue

Can someone explain why OR (second one from the left) in original query (generated programmatically) becomes MUST in the parsed query? How do i prevent this? Original Query: +matchAllDocs:true +( request_id:(00000000000000000000000000002796 OR…
naresh
  • 2,113
  • 20
  • 32
0
votes
1 answer

What is the QueryParser's syntax for proximity search?

I have been trying to implement proximity search using Lucene 3.6. I went for SpanNearQuery which almost did the trick for me, but my teacher says QueryParser can do it in a much nicer way (it would also filter the query using the analyzer, unlike…
Sufian
  • 6,405
  • 16
  • 66
  • 120
-1
votes
1 answer

Lucene partly parcer (parcer with contains)

I got Lucenes parser, who return me Comments from table. It's looks like: private static IEnumerable _search(string searchQuery, string searchField = "") { using (var searcher = new IndexSearcher(_directory, false)) { var analyzer…
user3041948
  • 101
  • 2
  • 8
1 2 3 4
5