lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Gravel <thomas.gra...@gmail.com>
Subject Re: Map Complex Datastructure with Solr
Date Wed, 01 Aug 2012 16:33:20 GMT
Thanks for the answer.

Ich have to explain, where the problem is...

you may have at the shop solutions products and articles.
The product is the parent of all articles...

in json...

{
   "product_name": "tank top",
   "article_list": [
         {
              "color": "red",
              "price": 10.99,
              "size": "XL",
              "inStore": true
         },
         {
              "color": "blue",
              "price": 15.99,
              "size": "XL",
              "inStore": false
         }
   ]
}

the problem is not the search (i think, because you can use
copyField), but the searchresults...

I have read the possibility to create own FieldTypes, but I don't know
if this is the answer of my issues...

2012/8/1 Jack Krupansky <jack@basetechnology.com>:
> The general rule is to flatten the structures. You have a choice between
> sharing common fields between tables, such as "title", or adding a
> prefix/suffix to qualify them, such as "document_title" vs. "product_title".
>
> You also have the choice of storing different tables in separate Solr
> cores/collections, but then you have the burden of querying them separately
> and coordinating the separate results on your own. It all depends on your
> application.
>
> A lot hinges on:
>
> 1. How do you want to search the data?
> 2. How do you want to access the fields once the Solr documents have been
> identified by a query - such as fields to retrieve, "join", etc.
>
> So, once the data is indexed, what are your requirements for accessing the
> data? E.g., some sample pseudo-queries and the fields you want to access.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Thomas Gravel
> Sent: Wednesday, August 01, 2012 9:52 AM
> To: solr-user@lucene.apache.org
> Subject: Map Complex Datastructure with Solr
>
>
> Hi,
> how can I map these complex Datastructure in Solr?
>
> Document
>    - Groups
>         - Group_ID
>         - Group_Name
>         - .....
>   - Title
>   - Chapter
>         - Chapter_Title
>         - Chapter_Content
>
>
> Or
>
> Product
>    - Groups
>         - Group_ID
>         - Group_Name
>         - .....
>   - Title
>   - Articles
>         - Artilce_ID
>         - Artilce_Color
>         - Artilce_Size
>
> Thanks for ideas....

Mime
View raw message