If you need to search across all the datasources together, the best choice
is to use a single index (with a single schema). Just add all the fields
from all the datasources (share the ones that are the same to some of
them). When adding docs, just fill the fields that belong to each document
type and leave the others empty. A couple of things:

You do need a uniqueKey that must be required.
You may want to omit norms on the fields that are usually left empty to
save some disk space.

For search, you can use copyFields to a general text field and use that for
search, or even better, use dismax (or edismax) to search across the fields
of the different document types.

For indexing, if you are using DIH, you may want to use different handlers
for the different configurations, I think that's the best way.


Tomás

On Thu, Sep 13, 2012 at 2:24 PM, nishi <nishia...@gmail.com> wrote:

> I am little new solr -
> I am running out of solution to index combination of rss articles and
> database table contents with the same schema.xml and data-config with
> multiple datasources (rss,db tables) etc.
>
> The functionality requirement is to able to search the keyword throughout
> indexed data (can be any source - rss urls, db , xml)
> Any pointer will be very helpful.
>
> Thanks,
> Nish
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Multiple-structured-datasource-rss-db-xml-in-single-schema-xml-tp4007497.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to