Re: how to restrict phrase to appear in same child document

2016-04-20 Thread Yangrui Guo
Hi thanks for answering. My problem is that users do not distinguish what color the color belongs to in the query. For example, "which black driver has a white mercedes", it is difficult to distinguish which color belongs to which field, because there can be thousands of car brands and professions.

Re: how to restrict phrase to appear in same child document

2016-04-20 Thread Alisa Z .
Yangrui, First, have you indexed your documents with proper nested document structure [https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-NestedChildDocuments]? From the peice of data you showed, it seems that you just put it righ