We have a custom "tagger" application which identifies certain entities (such
as companies, etc.) and applies a "relevance" value to each entity based upon
overall relevance in some document.
Then we index these "tags" into Lucene index by storing them in an indexed
field (same name, different
Hi everybody,
I am using Lucene for searching items in a online shop. E.g. I search the
shop for "shirt" I get a resultset from lucene. Now I want to improve the
sort order by calculating the lucene score with my business data, e.g. sales
or margin. Is there any possibility to get the scoring val
Kalani:
You are mistaken to think this is not possible. In fact
it is explicitly supported, and I've done it in many
situations. These two are entirely identical if you
use an analyzer that breaks the stream up on
words.
doc = new Document()
doc.add("myfield", "some text", blah blah)
doc.add("myf
Let's say my index has two fields (Type and Description). Type is either 0 or
1 and Description is a string (up to 250 characters). I'd like to execute the
following search:
+Description:Honda* +Type:0
Would the query run faster if I specify the Type first:
+Type:0 +Description:Honda
Hello Anshum,
In my case i have to add /modify records to the current index database and
there will be only delete in older index DB. I will not have a situitation
of updating the older records.
Please brief me about your requirement and how you configured your database.
Whether you have any
You are doing this kind of a thing?
document.add(new Field("id", id1, Field.Store.YES, Field.Index.TOKENIZED));
document.add(new Field("id", id2, Field.Store.YES, Field.Index.TOKENIZED));
I doubt whether this is possible. What happen to the value id1 when the
value id2 added to the same filed? me