Re: Lucene FuzzyQuery

2019-06-10 Thread Atri Sharma
> i make sure i specify a string with 1 edit away misspelled and that > never gets hit but the word with correct spelling is in the index. How long are your query terms and the actual word? For fuzzy query to match, your edit distance needs to be less than the smaller of the query and the actual w

Re: Lucene FuzzyQuery

2019-06-07 Thread baris . kazar
For problem#1 the following fuzzyquery ALONE does not catch any results when i run it  alone in the BooleanQuery and with either SHOULD or MUST occurrence. such as: [contentDFLT:MAIN~2] For problem#1 again the query is as follows: [+contentDFLT:"street", ->PhraseQuery contentDFLT:"mains~2",

Re: Lucene FuzzyQuery

2019-06-07 Thread baris . kazar
They only differ in 1 char and 5 letters long one 4 letters long the correct word: Mains vs Main (correct) FuzzyQuery Mains~2 cannot catch anything with Main in the first 74 hits. the 75th hit has Main word. Best regards On 6/7/19 2:44 PM, Atri Sharma wrote: i make sure i specify a string

Re: Lucene FuzzyQuery

2019-06-07 Thread baris . kazar
Sure, i will try that: and lets mark this problem as problem#1. something else is also happening: lets mark this as problem#2. i make sure i specify a string with 1 edit away misspelled and that never gets hit but the word with correct spelling is in the index. Best regards On 6/7/19 2:02

Re: Lucene FuzzyQuery

2019-06-07 Thread Atri Sharma
>However, with MUST > clause, that restriction is lifted. I meant that with a SHOULD clause, that restriction is lifted i.e. a query can score hits even if SHOULD clause does not match the hit (but other MUST clauses do match).

Re: Lucene FuzzyQuery

2019-06-07 Thread Atri Sharma
Is your FuzzyQuery matching any documents at all? It would be helpful if you could post your entire query. It might be happening that your Fuzzy query is not matching any hits, but when you specify it as a MUST clause, then it becomes a necessary condition for any hit to be returned by your overal

Lucene FuzzyQuery

2019-06-07 Thread baris . kazar
May i ask this question about FuzzyQuery? When i select BooleanClause.Occur.MUST for a FuzzyQuery i dont get any results back but with Occur.SHOULD i get some results, though. what is the meaning of Occur.MUST for FuzzyQuery? I want Lucene to give me best result from FuzzyQuery, i thought th