Assuming you mean the String representation of a Map, the same way you
do any other String: use StringField or an analyzer that keeps the
characters you want it to.  Maybe WhitespaceAnalyzer.


--
Ian.


On Wed, Feb 13, 2013 at 1:34 AM, Cheng <zhoucheng2...@gmail.com> wrote:
> Hi,
>
> How can I add field to hold a Java map object in such way that the "[",
> "]", "," are preserved?
>
> Thanks!

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

Reply via email to