Re: problem with details given by Explanation object

2007-11-27 Thread Ng Vinny
Sorry, if you mean the java code then it's as below: import java.io.File; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.queryPar

Re: problem with details given by Explanation object

2007-11-27 Thread Ng Vinny
Hi Erick, I indexed only files in pdf format so I cannot put them inline here in email. I did use Luke and put the same query into it and the same thing happened. Is there any chance i can send the two pdf files that cause the error to you to see if the error can be reproduced? Best, Ng On Nov

Re: problem with details given by Explanation object

2007-11-27 Thread Erick Erickson
Attachments often do not come through, at least they aren't visible to me using g-mail. So you might want to re-send them in-line. But another thing you can do is get a copy of luke and examine your index to see if the actual contents of doc1 and doc2 are what you expect. You can even run queries

problem with details given by Explanation object

2007-11-27 Thread Ng Vinny
Hi all, I am having a problem with Lucene 2.2.0 with regard to the contents of the Explanation objects after a PhraseQuery search. I indexed two documents doc1 and doc2 and then issue an OR Boolean query consisting of two PhraseQuery pq1 and pq2. Apparently, the details of the Explanation object