Re: FuzzyQuery- why is it ignored?

2019-06-25 Thread baris . kazar
da.1...@gmail.com To: baris.ka...@oracle.com Sent: Saturday, June 22, 2019 9:14:22 PM GMT -05:00 US/Canada Eastern Subject: Re: FuzzyQuery- why is it ignored? If You could index these entries and still find Main from MAINS query with Lucene 8.1, that means this is a bug in Lucene 6.6. No, it doe

Re: FuzzyQuery- why is it ignored?

2019-06-22 Thread Baris Kazar
my env. baris - Original Message - From: tomoko.uchida.1...@gmail.com To: java-user@lucene.apache.org Sent: Saturday, June 22, 2019 10:35:26 PM GMT -05:00 US/Canada Eastern Subject: Re: FuzzyQuery- why is it ignored? Please send messages to java-user mail list only. It is not recommended

Re: FuzzyQuery- why is it ignored?

2019-06-22 Thread Tomoko Uchida
gt; baris > > - Original Message - > From: tomoko.uchida.1...@gmail.com > To: baris.ka...@oracle.com > Sent: Saturday, June 22, 2019 9:14:22 PM GMT -05:00 US/Canada Eastern > Subject: Re: FuzzyQuery- why is it ignored? > > > If You could index these entries and stil

Re: FuzzyQuery- why is it ignored?

2019-06-22 Thread Baris Kazar
s a bug in Lucene 6.6. Best regards - Original Message - From: baris.ka...@oracle.com To: java-user@lucene.apache.org, tomoko.uchida.1...@gmail.com, erickerick...@gmail.com, a...@linux.com, baris.ka...@oracle.com, luc...@mikemccandless.com Sent: Thursday, June 13, 2019 10:49:05 AM GMT -05:00 US/C

Re: FuzzyQuery- why is it ignored?

2019-06-19 Thread baris . kazar
is.ka...@oracle.com, luc...@mikemccandless.com Sent: Thursday, June 13, 2019 10:48:47 AM GMT -05:00 US/Canada Eastern Subject: Re: FuzzyQuery- why is it ignored? i see, i am using an older version 6.6 and we should switch to Your 8.1 version of at least 7.X. Tomoko i think i understood You meant

Re: FuzzyQuery- why is it ignored?

2019-06-16 Thread Baris Kazar
16, 2019 4:39:29 AM GMT -05:00 US/Canada Eastern Subject: Re: FuzzyQuery- why is it ignored? Hi, you said you are using standard analyzer. If so, you are not using any stemmer at all (please see the analyzer's Javadocs). 2019年6月16日(日) 11:43 Baris Kazar : > > Hello,- > Erick ex

Re: FuzzyQuery- why is it ignored?

2019-06-16 Thread Tomoko Uchida
ck...@gmail.com, a...@linux.com, baris.ka...@oracle.com, > luc...@mikemccandless.com > Sent: Thursday, June 13, 2019 10:48:47 AM GMT -05:00 US/Canada Eastern > Subject: Re: FuzzyQuery- why is it ignored? > > i see, i am using an older version 6.6 and we should switch to Your 8.1 &g

Re: FuzzyQuery- why is it ignored?

2019-06-15 Thread Baris Kazar
To: java-user@lucene.apache.org, tomoko.uchida.1...@gmail.com, erickerick...@gmail.com, a...@linux.com, baris.ka...@oracle.com, luc...@mikemccandless.com Sent: Thursday, June 13, 2019 10:48:47 AM GMT -05:00 US/Canada Eastern Subject: Re: FuzzyQuery- why is it ignored? i see, i am using an older

Re: FuzzyQuery- why is it ignored?

2019-06-13 Thread baris . kazar
i see, i am using an older version 6.6 and we should switch to Your 8.1 version of at least 7.X. Tomoko i think i understood You meant MAIN NASHUA for the string :) Again i really appreciate all answers. How do we disable or enable stemming while indexing? :) another question. Best regar

Re: FuzzyQuery- why is it ignored?

2019-06-13 Thread Tomoko Uchida
Sorry, I made a mistake when copypasting. Let me just correct my previous mail. > 1. Indexed this text: "NASHUA NASHUA HILLSBOROUGH NEW HAMPSHIRE UNITED > STATES". 1. Indexed this text: "MAIN DUNSTABLE NASHUA HILLSBOROUGH NEW HAMPSHIRE UNITED STATES" As far as I can say, this query correct

Re: FuzzyQuery- why is it ignored?

2019-06-13 Thread baris . kazar
However, the index does not have MAINS but MAIN for the expected entry. Best regards On 6/13/19 10:33 AM, baris.ka...@oracle.com wrote: does it consider it as like plural word? :) :) :) That makes sense. Best regards On 6/13/19 10:31 AM, baris.ka...@oracle.com wrote: Erick, Cool, could Y

Re: FuzzyQuery- why is it ignored?

2019-06-13 Thread baris . kazar
does it consider it as like plural word? :) :) :) That makes sense. Best regards On 6/13/19 10:31 AM, baris.ka...@oracle.com wrote: Erick, Cool, could You give a simple example with my example please? Best regards On 6/13/19 10:12 AM, Erick Erickson wrote: Shot in the dark: stemming. When

Re: FuzzyQuery- why is it ignored?

2019-06-13 Thread baris . kazar
Erick, Cool, could You give a simple example with my example please? Best regards On 6/13/19 10:12 AM, Erick Erickson wrote: Shot in the dark: stemming. Whenever I see a problem with something ending in “s” (or “er” or “ing” or….) my first suspect is that stemming is turned on. In that cas

Re: FuzzyQuery- why is it ignored?

2019-06-13 Thread Erick Erickson
Shot in the dark: stemming. Whenever I see a problem with something ending in “s” (or “er” or “ing” or….) my first suspect is that stemming is turned on. In that case the token in the index that’s actually searched on is somewhat different than you expect. The test is easy, just insure your fie

Re: FuzzyQuery- why is it ignored?

2019-06-13 Thread baris . kazar
Tomoko,-  That is strange indeed. Something is wrong when i use mains but maink, mainl, mainr,mainq, maint all work ok any consonant at the end except s works in this case. Case #3 had +contentDFLT:mains~2 but not +contentDFLT:"mains~2". i am using fuzzy query with ~ from Query.builder and t

Re: FuzzyQuery- why is it ignored?

2019-06-12 Thread Tomoko Uchida
Hi, > Ok, i think only this very specific only "mains" has an issue. It looks strange to me. I did some test locally. 1. Indexed this text: "NASHUA NASHUA HILLSBOROUGH NEW HAMPSHIRE UNITED STATES". 2a. This query string (just copied from your Case #3) worked correctly for me as far as I can see

Re: FuzzyQuery- why is it ignored?

2019-06-12 Thread baris . kazar
Ok, i think only this very specific only "mains" has an issue. all i knew about Lucene was fine :) Great... i have one more question: which one is advised to use: FuzzyQuery or the Query.parser with search string~ appended? The second one will go through analyzer and make search string lower

Re: FuzzyQuery- why is it ignored?

2019-06-12 Thread baris . kazar
Hi again,- this is really interesting and i hope i am missing something. Index small cases all entries so case sensitivity is not an issue i think. Case #1: org.apache.lucene.queryparser.classic.QueryParser parser = new org.apache.lucene.queryparser.classic.QueryParser(field, phraseAnalyzer)