[KinoSearch] Merging indexes: delete_docs_by_term() first?

henka at cityweb.co.za henka at cityweb.co.za
Thu Aug 24 00:17:19 PDT 2006



>> When merging a temp index into a master index with add_invindexes
>> (), must
>> any existing documents in the master (ie, docs which match docs in the
>> temp index) first be marked as deleted using delete_docs_by_term()
>> prior
>> to the merge, or does the logic in add_invindexes() take care of
>> duplicate
>> documents?
>
> You must use delete_docs_by_term().  KS knows nothing about whether
> you've defined a field that you're using as a unique id.   It will
> happily index duplicates and return them with equal scores at search-
> time.

Excellent, thanks.  I suspected this, but needed to make sure to prevent
duplication.


_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch




More information about the kinosearch mailing list