I'd like to query a string to Solr
and let it answer with all records which are a subset of that string.
The string is separated by a comma. I wanna make Solr to give me all records where a specific string field is a subset of the string provided as the request.
Example
Imagine I have a string field indexed in Solr which is a set of strings separated by a comma. For example, let's say I have the following record's field indexed in Solr:
"AAA, AAB"
"AAA"
"AAA, AAB, AAC"
"AAA, AAB, AAC, AAD"
"AAA,AAC,AAD"
"AAA,AAD"
"AAD"
"AAB,AAC"
I wanna Solr to receive a query with, for example, "AAA, AAD" and reply with the following records:
"AAA"
"AAA ,AAD"
"AAD"
If I query by "AAA, AAB, AAC" the retrieved records would be...
"AAA"
"AAA,AAB"
"AAA ,AAB, AAC"
"AAB ,AAC"
The retrieved records must be exactly a subset of the string provided
Is it possible to make Solr
behave like this?