compare scores across queries

2008-11-18 Thread Ng Vinny
Hi all, I am wondering if the raw scores obtained from HitCollector can be used to compare relevance of documents to different queries? E.g. two phrase queries are issued : (PQ1: "Barack Obama" and PQ2: "John McCain"). if a document (doc1) belongs to the result sets of both queries and has th

RE: How to obtain raw scores?

2008-11-19 Thread Ng Vinny
hi Is there any documentation that says that scores obtained from TopDocs.scoredocs[i].score are comparable across queries. I am having this problem myself so I would really appreciate if anyone has some pointers to this. At [1], it seems like they are not. Is there any solution to enable this co

PhraseQuery and non-letter characters

2008-11-28 Thread Ng Vinny
Hi, I'm having an issue with PhraseQuery in which a query for the phrase "information technology" has among of its matches the strings "information, technology" and "information. Technology", which should not be considered as matches. Both StopAnalyzer StandardAnalyzer removes non-letter charact

Re: PhraseQuery and non-letter characters

2008-12-02 Thread Ng Vinny
ing with position increments. I think that would prevent phrase > queries from matching. > > > -- > Ian. > > > On Fri, Nov 28, 2008 at 5:05 PM, Ng Vinny <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm having an issue with PhraseQuery in which a que

problem with details given by Explanation object

2007-11-27 Thread Ng Vinny
help to shed some light on this. Thank you very much Ng Vinny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem with details given by Explanation object

2007-11-27 Thread Ng Vinny
index to see if the actual contents of doc1 and doc2 are what > you expect. You can even run queries through it (but watch to insure > that you're using the correct analyzer) and see what is returned > > Best > Erick > > On Nov 27, 2007 3:54 PM, Ng Vinny <[EMAIL PROTECT

Re: problem with details given by Explanation object

2007-11-27 Thread Ng Vinny
ents of doc1 and doc2 are what > you expect. You can even run queries through it (but watch to insure > that you're using the correct analyzer) and see what is returned > > Best > Erick > > On Nov 27, 2007 3:54 PM, Ng Vinny <[EMAIL PROTECTED]> wrote: > > > Hi

how to store and reuse query

2007-02-02 Thread Ng Vinny
Dear List, After processing some text, I have constructed a Boolean query , e.g. "title:Lucene author:Otis", and I would like to store the query to reuse when the same piece of text is issued (to avoid re-processing of the same text). I thought of storing the string resulted from Query.toString(