There is no way to "update" a document in lucene, you always have to
remove the existing document and add the updated version with ALL its
fields. The updateDocument-method of IndexWriter exists only for
convenience (and to assure the operation is atomic), but internally it
does just that: remo
Thanks for the reply.
Is there a way to partially update the document ? I know there's a API
updateDocument on IndexWriter, but that seems to create a new document with
just a field i am specifying. What i want is delete some fields from
existing(indexed) document, and then add some new fields(c
You might start here:
http://lucene.apache.org/core/6_1_0/core/org/apache/lucene/index/IndexWrite
r.html
On 8/8/16, 8:17 PM, "lukes" wrote:
>Can anyone please reply ? .
>
>Regards.
>
>
>
>--
>View this message in context:
>http://lucene.472066.n3.nabble.com/Newbie-Questions-tp4290817p4290854.
Can anyone please reply ? .
Regards.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Newbie-Questions-tp4290817p4290854.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsub
: That link appears to be referring to normalized scores (everything is <
: 1.0). Is it also not safe to use a threshold for raw scores?
Nope. The basic flaw in comparing scores between two queries still holds
... early messages in the threads linked to go into more detail, but as i
recall, the
> 2) independent of the scores being different, it is not safe to try and
> pick a score threshold, this is mentioned in the FAQ...
>
> http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-912c1f237bb00259185353182948e5935f0c2f03
That link appears to be referring to normalized scores (everythin
: 1) I create an index with one document with a searchable field of "All
: dogs are brown." If I search on that index with a query of "All dogs
: are brown." I do not get a hit with score 1.0, but something low like
: 0.38. I tried looking at the scoring algorithm and can't make heads or
: tail