You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ne...@gazeta.pl on 2007/03/08 21:56:33 UTC

one Field in many documents

Hi,

I have to index many documents with the same fields (only one or two
fields are different). Can I add a field (Field instance) to many
documents? It seams to work but I'm not sure if this is the right way...

Thank you


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: one Field in many documents

Posted by "Michael D. Curtin" <mi...@curtin.com>.
<ne...@gazeta.pl> wrote on 08/03/2007 12:56:33:

I have to index many documents with the same fields (only one or two
fields are different). Can I add a field (Field instance) to many
documents? It seams to work but I'm not sure if this is the right way...

What does "many" mean in this context?  If it means "most", or "all", 
perhaps it would be better not to index those fields at all -- they 
would be adding little or nothing, in terms of information content.

--MDC

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: one Field in many documents

Posted by Doron Cohen <DO...@il.ibm.com>.
In general I would say this is not safe, because it seems to assume too
much about the implementation - and while it might in most cases currently
work, the implementation could change and the program assuming this would
stop working. It would most probably not work correctly right from the
start for fields constructed with a Reader.

Regards,
Doron

<ne...@gazeta.pl> wrote on 08/03/2007 12:56:33:

> Hi,
>
> I have to index many documents with the same fields (only one or two
> fields are different). Can I add a field (Field instance) to many
> documents? It seams to work but I'm not sure if this is the right way...
>
> Thank you


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org