Re: Newbie Questions

2016-08-10 Thread Christoph Kaser
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

Re: Newbie Questions

2016-08-09 Thread lukes
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

Re: Newbie Questions

2016-08-09 Thread Bauer, Herbert S. (Scott)
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.

Re: Newbie Questions

2016-08-08 Thread lukes
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

RE: Newbie questions re: scoring

2006-05-04 Thread Chris Hostetter
: 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

RE: Newbie questions re: scoring

2006-05-04 Thread John Hamilton
> 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

Re: Newbie questions re: scoring

2006-05-04 Thread Chris Hostetter
: 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