I'm afraid that if the queries are given in such a loose natural language
form, the only way to handle it is to introduce some natural language
processing stage that would form the right query (which is actually a working
strategy, IBM does so).
If your document structure is fixed (i.e., you
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.
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
hello
I have a nested document type in my index. Here's the structure of my
document:
{
id:
{
car:
color:
}
{
driver:
color:
}
}
However, when I use the query q={!parent
which="content_type:parent"}+(black AND driver)&fq={!parent
which="content_type:parent"}+(white AND mercedes),