lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbarani <bbar...@gmail.com>
Subject Is there a way to create multiple <doc> using DIH and access the data pertaining to a particular <doc name> ?
Date Wed, 10 Nov 2010 16:57:47 GMT

Hi,

I have a peculiar situation where we are trying to use SOLR for indexing
multiple tables (There is no relation between these tables). We are trying
to use the SOLR index instead of using the source tables and hence we are
trying to create the SOLR index as that of source tables.

There are 3 tables which needs to be indexed.

Table 1, table 2 and table 3.

I am trying to index each table in seperate doc tag with different doc tag
name and each table has some of the common field names. For Ex:

<document name="DataStoreElement">      		
	 <entity name="DataStoreElement" query="">
	<field column="DATA_STOR" name="DATA_STO"/>
	</entity>   
</document>
<document name="DataStore">      		
	 <entity name="DataStore" query="">
	<field column="DATA_STOR" name="DATA_STO"/>
	</entity>   
</document>


After indexing is complete, I am interested in searching the DATA_STO
present under a particular document(not from both documents). something like
/search?q=test AND documentname:DataStoreElement

Is it possible to do this using DIH in SOLR?

My current approach is to manipulate the source field names to unique names
during indexing.

One more approach would be to have multi core setup and index each tables
seperately in different core..

Please let me know if there is any other suggestion for this issue.

Thanks,
Barani



-- 
View this message in context: http://lucene.472066.n3.nabble.com/Is-there-a-way-to-create-multiple-doc-using-DIH-and-access-the-data-pertaining-to-a-particular-doc-n-tp1877203p1877203.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message