Re: partial match

2019-08-04 Thread Atri Sharma
It is not very clear as to what is it that you are trying to achieve here. If you want to match similar terms as the one you specify in the query (test, tesk, lest etc), then a fuzzy query (~) should suffice. Note that you cannot specify a mandatory part of the text that has to match in every resul

Re: What is edit distance 2 mean for fuzzy queries?

2019-08-04 Thread Furkan KAMACI
Hi Baris, Terms of length 1 or 2 will sometimes not match because of how the scaled distance between two terms is computed. For a term to match, the edit distance between the terms must be less than the minimum length term (either the input term, or the candidate term). For example, FuzzyQuery on

Re: Lucene 5.2.1 score for MUST_NOT query

2019-08-04 Thread Uwe Schindler
In short: As it matches nothing, it cannot modify the score. Scores of documents not excluded are not modified, so it behaves like zero. In short: it's the opposite of FILTER clauses. Uwe Am August 4, 2019 6:26:29 PM UTC schrieb Atri Sharma : >MUST_NOT represents a clause which must not match a

Re: Lucene 5.2.1 score for MUST_NOT query

2019-08-04 Thread Atri Sharma
MUST_NOT represents a clause which must not match against a document in order for it to be qualified as a hit (think of SQL’s NOT IN). MUST_NOT clauses are used as filters to eliminate candidate documents. On Sun, 4 Aug 2019 at 23:11, Claude Lepere wrote: > Hello! > > What score of a hit in res

Lucene 5.2.1 score for MUST_NOT query

2019-08-04 Thread Claude Lepere
Hello! What score of a hit in response to a query that begins with the clause MUST_NOT? Is it 0 or something else? What does it mean? How is it calculated? Thank you in advance. Claude Lepère