java-user@lucene.apache.org
[Top] [All Lists]

Index individual digital strings

Subject: Index individual digital strings
From: Wenbo Zhao
Date: Mon, 9 Nov 2009 14:48:41 +0800
Hi all,
What's the best way to index digital strings ?
currently I'm using
    doc.add(new Field("id", docid, Field.Store.YES, Field.Index.NOT_ANALYZED));
    doc.add(new Field("field", str, Field.Store.NO, Field.Index.ANALYZED));
str is concatenated digital strings for this document.
I guess there should be more effeciency way to do that.
Because the order of these strings are not useful.
I just want to index them mapping to the docid, like a rdms does.



-- 

Best Regards,
ZHAO, Wenbo

=======================

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Index individual digital strings, Wenbo Zhao <=