lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Storing part of the field
Date Fri, 14 Nov 2008 13:08:26 GMT
As far as I know you can't do this with just one field. Why do you
care? Storing two fields, one indexed but not stored and one stored
but not indexed shouldn't use very many resources.

Best
Erick

On Fri, Nov 14, 2008 at 3:06 AM, Ravi L <mouryaravi@gmail.com> wrote:

> Thanks Anshum!
>
> This can be possible. But, I am searching for is to do this with only one
> field.
>
>
> thanks
> ravi
>
> On 14-Nov-08, at 1:32 PM, Anshum wrote:
>
>  Hi Ravi,
>> In that case, you could have 2 fields. One of them would be indexed (i.e.
>> "foo bar") and you could use the other only to store as per your logic.
>> Hope this solves your purpose.
>>
>> --
>> Anshum Gupta
>> Naukri Labs!
>> http://ai-cafe.blogspot.com
>>
>> The facts expressed here belong to everybody, the opinions to me. The
>> distinction is yours to draw............
>>
>>
>> On Fri, Nov 14, 2008 at 1:19 PM, Ravi L <mouryaravi@gmail.com> wrote:
>>
>>  Hi,
>>>
>>> I am simple question.
>>>
>>> I want a string to be indexed, but stored part of that string.
>>>
>>> For example, if my string is "foo bar", I want to index whole string("foo
>>> bar") but store the first 3 characters("foo") of it. How can I do this
>>> with
>>> the lucene APIs?
>>>
>>>
>>> thanks
>>> ravi
>>>
>>> ---------------------------------------------------------------------
>>> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message