Re: Automatic prefix search in query parser

2021-09-03 Thread Gauthier Roebroeck
Thank a lot Erik, I didn't thought about changing the index, only about the query. I will explore that route. On Fri, 3 Sep 2021, 22:53 Erik Hatcher, wrote: > A comparable alternative would be to use the edge ngram filter to index > prefixes instead. > > Erik > > > > On Sep 3, 2021, at 1

Re: Automatic prefix search in query parser

2021-09-03 Thread Erik Hatcher
A comparable alternative would be to use the edge ngram filter to index prefixes instead. Erik > On Sep 3, 2021, at 10:49 AM, Gauthier Roebroeck > wrote: > > Hello, > > I am using Apache Lucene 8.9.0 to parse queries that are entered by humans. > I am using the > `org.apache.lucen

Automatic prefix search in query parser

2021-09-03 Thread Gauthier Roebroeck
Hello, I am using Apache Lucene 8.9.0 to parse queries that are entered by humans. I am using the `org.apache.lucene.queryparser.classic.MultiFieldQueryParser` which works very well so far. However I would like to automatically use the prefix notation (`*`) for all terms in the query, instead of

Re: # search in Query

2011-05-23 Thread Ian Lea
Are you sure that it isn't working? If you use the same analyzer at both indexing and query time you should end up with consistent results. Read up on exactly what your analyzer is doing by looking at the javadocs. Google will find you lots of info on analysis, or get hold of a copy of Lucene In

# search in Query

2011-05-23 Thread Yogesh Dabhi
I have some bellow value in lucene index field 1#abcd 2#test wer 3# testing rty I wright the query like bellow +fieldname:1# After query parser I see query string become +fieldname:1 is there a way to search given string Thanks & Regards Yogesh