lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: How to add a field to hold a Java map object?
Date Thu, 14 Feb 2013 09:45:19 GMT
StringField is in versions 4.x.  You should have said you were using
an old version.


--
Ian.


On Thu, Feb 14, 2013 at 3:46 AM, Cheng <zhoucheng2008@gmail.com> wrote:
> http://lucene.apache.org/core/4_0_0-BETA/core/org/apache/lucene/document/StringField.html
>
> I found StringField API here, however, it seems that StringField can't be
> found and thus not compiled.
>
> My lucene is 3.5
>
> On Wed, Feb 13, 2013 at 4:54 AM, Ian Lea <ian.lea@gmail.com> wrote:
>
>> 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 <zhoucheng2008@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-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>

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


Mime
View raw message