Re: TermsVector

2008-12-26 Thread Grant Ingersoll
Have a look at the Field.TermVector options to the Field constructor. You will need to add this attribute at index time, then during search, you can use IndexReader.getTermFreqVector (or it's variants). -Grant On Dec 25, 2008, at 4:40 AM, Shahid Faiz wrote: Hi, I am new to lucene. I am t

Payloads

2008-12-26 Thread Karl Wettin
I would very much like to hear how people use payloads. Personally I use them for weight only. And I use them a lot, almost in all applications. I factor the weight of synonyms, stems, dediacritization and what not. I create huge indices that contains lots tokens at the same position but wi

Re: Any way to ignore repeated terms in TF calculation?

2008-12-26 Thread Karl Wettin
Hi Israel, you can solve your problem at search time by passing a custom Similarity class that looks something like this: private Similarity similarity = new DefaultSimilarity() { public float tf(float v) { return 1f; } public float tf(int i) { return 1f; } };

Fwd: Field Not Present In Document

2008-12-26 Thread Amin Mohammed-Coleman
Begin forwarded message: From: Amin Mohammed-Coleman Date: 26 December 2008 20:19:02 GMT To: java-user@lucene.apache.org Subject: Field Not Present In Document Hi I have the following situation: Document document = new Document(); String body ="This is a body of document";

Field Not Present In Document

2008-12-26 Thread Amin Mohammed-Coleman
Hi I have the following situation: Document document = new Document(); String body ="This is a body of document"; Field field = new Field("body", body, Field.Store.YES, Field.Index.ANALYZED); document.add(field); String id ="1

Re: Re: Re: Problem with sorted results.

2008-12-26 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Re: Problem with sorted results.

2008-12-26 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Problem with sorted results.

2008-12-26 Thread Erick Erickson
Several points: 1> Prabin's suggestion is, I think, equivalent to something like: title:(business AND author)^9.0 OR author:(business AND author)^3.0 OR description:(business AND author)^1.0. Either way may give you results more in line with what you expect. (note, the syntax here is suspect, but