lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: searching in 2 indexes
Date Mon, 15 Dec 2008 18:00:31 GMT

On Dec 15, 2008, at 12:44 PM, Chris Bamford wrote:
> One question (thinking ahead now): how to differentiate between  
> content and reference hits if they are retrieved from the same  
> index? Presumably I will need to try to retrieve a field which only  
> exists in one and if it fails, I know it must be of the other type?

Simply have a type field on all documents that is assigned one of two  
string (non-tokenized) values: content and reference.

	Erik


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