Re: SingleTerm vs MultiTerm in PhraseWildCardQuery class in the sandbox Lucene

2020-02-21 Thread baris . kazar
Hi,-  Looks like the only way to use and test the new PhraseWildCardQuery class in Lucene 8.4.0 sandbox is to switch to Lucene 8.4.0 from Lucene 7.7.2. I thought i could adapt it to Lucene 7.7.2 but so far i saw i needed to change heavily 20+ classes and it will be way more than this. So,

StandardFilter and StandardFilterFactory removed in Lucene 8.x

2020-02-21 Thread baris . kazar
Hi,- I hope everyone is doing great. What replaces these classes in Lucene 8.x? https://issues.apache.org/jira/browse/LUCENE-8356 says they presumably do nothing. Is that certain please? On the other hand: I see that (for example) the Query class has been changed quite a lot when someone

Re: Scores With & Without IDF In A Single Search

2020-02-21 Thread Adrien Grand
An easy way to do this would be to run two searches with a filter that only matches this document. On Fri, Feb 21, 2020 at 2:39 PM Amal S Raj wrote: > Hi, > > I'd like to retrieve the score with and without IDF for a particular > document in a search. What is a good way to implement this, withou

Scores With & Without IDF In A Single Search

2020-02-21 Thread Amal S Raj
Hi, I'd like to retrieve the score with and without IDF for a particular document in a search. What is a good way to implement this, without doing two searches? Thanks, Amal

Re: Using FunctionScoreQuery vs CustomScoreQuery

2020-02-21 Thread Adrien Grand
Hi Kevin, FunctionScoreQuery can also work with dynamically-computed values, you just need to provide it with a DoubleValuesSource that computes values dynamically. The factory methods that exist in the DoubleValuesSource class all work with indexed data, but it is also possible to write a custom