How about aggregating all location fields into one searchable multi-Value
field using copyField? It could be an index-only collection. Then, you just
say all_locations:Crosby
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 Tue, Dec 11, 2012 at 5:17 AM, Michael Jones <[email protected]>wrote:
> Hi,
>
> I realise that you can't get nested document to search in solr.
>
> But if I did this:
>
> <doc>
> <field name="source">Test</field>
> <field name="type">bar</field>
> <field name="label">Map</field>
> <field name="date_long"/>
> <field name="date_short"/>
> <field name="persons-0446_name">Graham</field>
> <field name="persons-0446_link">foo</field>
> <field name="persons-0446_location">Crosby</field>
> <field name="persons-0446_office"/>
> <field name="persons-0188_name">Bob</field>
> <field name="persons-0188_link">foo</field>
> <field name="persons-0188_location">test</field>
> <field name="persons-0188_office"/>
> <field name="persons-0183_name">Denzil</field>
> <field name="persons-0183_link">foo</field>
> <field name="persons-0183_location">test</field>
> <field name="persons-0183_office"/>
> </doc>
>
> Could I still search for location with *_location ?
>
> Or is there another way to get relational data into solr?
>
> Thanks
>