That depends on what you are trying to search. Start your schema
design from your _search_ requirements, not your document
requirements.

See the presentation by Gilt on how they went through different
iterations on their document schema design:
http://www.slideshare.net/trenaman/lucene-revolution-2013-adrian-trenaman
. Don't worry if you don't get half of it at first though, they are
quite advanced for many of us.

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Sun, May 26, 2013 at 5:41 PM, Oleksiy Druzhynin <meddn...@gmail.com> wrote:
> I have document divider by paragraphs. How better to add it to Solr?
> As single str field:
>
> <field name="main">
>   paragraph1
>   paragraph2
>   paragraph3
> </field>
>
>  Or multivalued fields:
>  <field name=" paragraph "> paragraph1 </field>
>  <field name=" paragraph "> paragraph2 </field>
>  <field name=" paragraph "> paragraph3 </field>

Reply via email to