Re: Nested document workaround?

2012-12-10 Thread Otis Gospodnetic
Would http://search-lucene.com/?q=solr+join do it for you?

Otis
--
SOLR Performance Monitoring - http://sematext.com/spm/index.html
Search Analytics - http://sematext.com/search-analytics/index.html




On Mon, Dec 10, 2012 at 1:17 PM, Michael Jones michaelj...@gmail.comwrote:

 Hi,

 I realise that you can't get nested document to search in solr.

 But if I did this:

   doc
 field name=sourceTest/field
 field name=typebar/field
 field name=labelMap/field
 field name=date_long/
 field name=date_short/
 field name=persons-0446_nameGraham/field
 field name=persons-0446_linkfoo/field
 field name=persons-0446_locationCrosby/field
 field name=persons-0446_office/
 field name=persons-0188_nameBob/field
 field name=persons-0188_linkfoo/field
 field name=persons-0188_locationtest/field
 field name=persons-0188_office/
 field name=persons-0183_nameDenzil/field
 field name=persons-0183_linkfoo/field
 field name=persons-0183_locationtest/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



Re: Nested document workaround?

2012-12-10 Thread Alexandre Rafalovitch
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 michaelj...@gmail.comwrote:

 Hi,

 I realise that you can't get nested document to search in solr.

 But if I did this:

   doc
 field name=sourceTest/field
 field name=typebar/field
 field name=labelMap/field
 field name=date_long/
 field name=date_short/
 field name=persons-0446_nameGraham/field
 field name=persons-0446_linkfoo/field
 field name=persons-0446_locationCrosby/field
 field name=persons-0446_office/
 field name=persons-0188_nameBob/field
 field name=persons-0188_linkfoo/field
 field name=persons-0188_locationtest/field
 field name=persons-0188_office/
 field name=persons-0183_nameDenzil/field
 field name=persons-0183_linkfoo/field
 field name=persons-0183_locationtest/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