i'm looking for a particular SolR query that can select a value in a field, only if it is unique.
for exemple, here is some documents :
<doc>
<id>1</id>
<folder_id>abc;def;ghi</folder_id>
</doc>
<doc>
<id>2</id>
<folder_id>def</folder_id>
</doc>
If I ask solr for the folder_id:"def"
, it will gives me back the two documents, but I want only the one with id: 2
What I want is to be able to retrieve all the documents that have the key def
and only this one.
Unfortunatly I can't be able to retreive all the other keys to be able to create a query like this one folder_id:"def" AND NOT folder_id:("abc", "ghi")
Let me know if you guys need some more info