lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject Re: Updating a document.
Date Sun, 04 Mar 2012 16:36:04 GMT
if you want to identify a document, you should use a field such as url as
Unique Key in solr

On Mon, Mar 5, 2012 at 12:31 AM, Benson Margulies <bimargulies@gmail.com>wrote:

> I am walking down the document in an index by number, and I find that
> I want to update one. The updateDocument API only works on queries and
> terms, not numbers.
>
> So I can call remove and add, but, then, what's the document's number
> after that? Or is that not a meaningful question until I make a new
> reader?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message