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 Vijay Jagannathan <vj...@cgn.net> on 2001/11/01 21:27:12 UTC

Adding New Fields to Document

Hello All,
I am trying to add a new field to the Document as below:

doc.add(new Field("authorname", authorname, false, true, false));

When I am doing the search after rebuilding the index, I am not getting any
results if I search on this field.

Is there a size limit or limit on the number of fields a Document can have ?

Any guidance is much appreciated.

Thanks.
Vijay

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Adding New Fields to Document

Posted by Ian Lea <ia...@blackwell.co.uk>.
Are you adding the document to the index once you've added the Field to the
document?
Do you see the authorname if search on some other field in the Document?

I don't know if there are limits or not, but if there are I suspect they
are high enough that you and I are unlikely to hit them.




--
Ian.
ian.lea@blackwell.co.uk



Vijay Jagannathan wrote:
> 
> Hello All,
> I am trying to add a new field to the Document as below:
> 
> doc.add(new Field("authorname", authorname, false, true, false));
> 
> When I am doing the search after rebuilding the index, I am not getting any
> results if I search on this field.
> 
> Is there a size limit or limit on the number of fields a Document can have ?
> 
> Any guidance is much appreciated.
> 
> Thanks.
> Vijay

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>