FuzzyQuery

2019-06-07 Thread Baris Kazar
Hi,- i cant get FuzzyQuery working for searching with a query like Mains~2 to find the word Main in a TextField. Any suggestions please? - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands,

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

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

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

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

Re: IntField to IntPoint

2019-06-07 Thread Erick Erickson
Omitting norms and the like only matters for text fields, primitives (numerics, boolean, string) don’t have any of that information. You really have no choice but to re-index to jump from 4->7. Or, I should say you’re completely unsupported and you will have to deal with any anomalies. I

Sampled Queries -- Use Cases and Feedback

2019-06-07 Thread Atri Sharma
Hi All, While working on a new Query type, I was inclined to think of a couple of use cases where the documents being scored need not be all of the data set, but a sample of them. This can be useful for very large datasets, where a query is only interested in getting the "feel" of the data, and

Re: IntField to IntPoint

2019-06-07 Thread Riccardo Tasso
Thanks Erik for your answer. Unfortunately I should migrate the index for time reasons. Maybe in a second moment we will have the opportunity to reindex. Our use case is to classify documents in the index with lucene queries, hence we're not really interested in ranking or sorting (which could