lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gora Mohanty <>
Subject Re: Solr Indexing and Search on different Product Catalog Views
Date Sat, 06 Oct 2012 15:34:27 GMT
On 6 October 2012 20:31, nitin malhotra <> wrote:
> Hi!
> I have a business case to Index the Product Catalogue data using Solr for a
> food chain client. The data received is in the form of XML. And the
> business requirement for search is that a log in customer on the portal
> when performs a search, it should be able to search only a specific set of
> products from the catalogue. This can be understood as forming different
> views of product catalogue which have certain products available for search
> and purchase. Also the products in a particular view (catalogue group) can
> exist in more than one set.

How are the different catalogue views defined? Is this definition
included in the structure of the XML?

> The # of views (or groups to be formed) - 1500 approx
> 1. Need help to understand the strategy to index data to be able to make it
> available for search in the catalogue views.

Different approaches are possible depending on how your data
are structured:
1. If the catalogue views are all defined ahead of time in the XML,
    and if wastage of disk space from duplication of data in different
    catalogue views is not an issue, a clean approach would be to
    allocate a different Solr core for each catalogue view:
2. Another approach would be to flatten all the data, and for each
    product record have a multi-valued field that defines which catalogue
    views the product should appear in.

> 2. Is there a way to index the complete catalogue and then have some way to
> search based on the product views ?
> Please go easy as I am new to the SOlr.

The most important part is to design your Solr/Lucene index so as to:
(a) Make search efficient
(b) Make indexing easy in terms of the code that has to be written,
     and make it efficient.

If you are new to Solr, I would start by understanding the basics. The
Solr Wiki at has a lot of information.
(a) Get Solr up and running
(b) Go through the basic examples, especially how to index XML:
     - The Solr DataImportHandler can be useful here:
(c) After you are familiar with the basics, you can ask more specific
     questions about how best to structure your index, providing
     examples of the XML to be indexed and searched.


View raw message