Questions tagged [query-parser]

69 questions
0
votes
1 answer

Manipulating query using Custom Query Parser in Solr

I have tried to create a CustomQueryParser where I am making use of OpenNLP libraries as well. My objective is if i have a query "How many defective rims are causing failure in ABC tyres in China" I want the final query to be something like…
0
votes
3 answers

Solr highlighting - terms with umlaut not found/not highlighted

I am playing with 7.2 version of solr. I've uploaded a nice collection of texts in German language and trying to query and highlight a few queries. If I fire this query with…
arthur
  • 1,034
  • 2
  • 17
  • 31
0
votes
1 answer

Lucene analyzer to handle yo and ye (Russian characters)

I'm using Lucene and StandardAnalyzer for creating indexes in my code, however, there is a problem with 'Yo' and 'Ye' (Ё and Е). I want search results with 'yo' also yeild results with 'ye', and vise-versa. I tried to create new Analyzer class,…
Senso Hakai
  • 141
  • 1
  • 2
  • 13
0
votes
0 answers

Could ES support Surround query parser?

Could I change ES query parser to support "Surround query parser". org.apache.lucene.queryParser.surround.parser.QueryParser and do something mentioned in query parser 99w(aa,bb,cc) 99n(aa,bb,cc) or something mentioned here (spot w prices) 3w…
rongdong.bai
  • 471
  • 1
  • 6
  • 16
0
votes
0 answers

Modify the query keyword in solr

When we get the query from front-end as "market survey rm", need to change it as "market survey system" in Solr and trigger the search. Is there any way to achieve it?
Swathika
  • 15
  • 5
0
votes
1 answer

Query select all lucene java

I'm trying to do query with Lucene and I would like to select the documents whose title begins with the "@" character . I looked at the documentation but the results is zero elements. This is the code and the result. Thanks for your help. this is…
0
votes
1 answer

Weird behavior of Lucene query parser 5.1.0

I am using Lucene Query Parser 5.1.0 These filter queries do not work: * AND {!tag=guid}guid:(*) * && {!tag=guid}guid:(*) * {!tag=guid}guid:(*) it throws org.apache.solr.search.SyntaxError: Cannot parse 'guid:(*': Encountered \"\" at line 1,…
mirelon
  • 4,896
  • 6
  • 40
  • 70
0
votes
1 answer

Solr minimum match (mm) ignored by mandatory clause?

Solr properties: solr-5.2.1 default operator is AND I am using next query: NAME:marie SECOND_NAME:curie +PROFESSION:physicist mm=80% according to minimum match docs I expect that 2 clauses will be matched is search result ( as (int) (3 * 0.8) =…
Oleksandr Martynov
  • 320
  • 2
  • 5
  • 19
0
votes
1 answer

Lucene Queryparser with multiple fields

I use Lucene 5.3 and try to search over multiple fields using the queryparser-syntax. I found within the Lucene Tutorials a short example and modified it to Version 5.3 and to search over those fields. package lucenewriterexample; import…
Nik
  • 53
  • 1
  • 9
0
votes
1 answer

Lucene QueryParser or Query: get all effectively required terms

Is there a way to get from a Query instance all those terms that are effectively required for documents to contain? A QueryParser is used to create the Query instance, so the "content" of the query is user driven. A user could for example give this…
pedjjj
  • 958
  • 3
  • 18
  • 40
0
votes
1 answer

Lucene QueryParser: must contain either one or the other among other MUST clauses

How can QueryParser from Apache Lucene be used to have a query that either contains term A or term B (or both, but at least one of them). EDIT: Also, it contains other MUST clauses, e.g., it must contain C and it must contain either A or B. Is this…
pedjjj
  • 958
  • 3
  • 18
  • 40
0
votes
0 answers

Apache SOLR: Giving extra results with Standard Query Parser on Logical AND

I ran into this strange issue, while using Logical AND for my Standard Query Parser. I am searching for terms "steve" and "austin" in the query. I am getting 8 matches, out of which only 2 contain both the terms, and rest of them only contain steve.…
Himanshu Gautam
  • 359
  • 1
  • 4
  • 17
0
votes
0 answers

Solr query with repeating parameter

I try to "extend" one of the examples from the Solr Query Parsing presentation ( http://www.slideshare.net/erikhatcher/sa-22830939 ). I'd like to extend it in a way that I'm able to retrieve multiple solr documents at once with a querystring which…
pagid
  • 13,559
  • 11
  • 78
  • 104
0
votes
1 answer

Lucene QueryParser Analyzer inconsistency

I have a very simple Analyzer that tries to replace forward slashes (/) by spaces. Because QueryParser forces me to escape strings with slashes before parsing, I added a MappingCharFilter to the analyzer that replaces "\/" with a single space. The…
Luís Pureza
  • 841
  • 1
  • 7
  • 13
0
votes
1 answer

Easiest way to deploy customized Lucene QueryParser onto Solr core

I have developed a customization to Lucene QueryParser by changing the QueryParser.jj grammar. One way to deploy this onto Solr is to revamp the Solr war file by compiling new lucene core. On the other hand, a new query parser on Solr level can be…
D_K
  • 1,410
  • 12
  • 35