lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Newton" <glen.new...@gmail.com>
Subject Re: "Global" Field question (thread-safe)?
Date Thu, 06 Nov 2008 21:01:21 GMT
Thanks!  :-)

2008/11/6 Michael McCandless <lucene@mikemccandless.com>:
>
> The field never changes across all docs?  If so, this will work fine.
>
> Mike
>
> Glen Newton wrote:
>
>> I have a use case where I want all of my documents to have - in
>> addition to their other fields - a  single field=value.
>> An example use is where I have multiple Lucene indexes that I search
>> in parallel, but still need to distinguish them.
>> Index 1: All documents have: source="a1"
>> Index 2: All documents have: source="a2"
>>
>> This is a common use case that has previously been discussed on this list.
>>
>> The particular question I have is: when I am indexing, can I create a
>> single Field and use it for all Documents? Note I am in a
>> multithreaded environment, so many Documents are created and will have
>> this same Field added to them, and subsequently indexed.
>>
>> So are their any threading issues with this particular usage?
>>
>> thanks,
>>
>> Glen
>>
>> --
>>
>> -
>>
>> ---------------------------------------------------------------------
>> 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
>
>



-- 

-

---------------------------------------------------------------------
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