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
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
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;
}
};
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";
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
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
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
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