Praveen Kumar
Praveen Kumar

Reputation: 103

Apache solr filter based on array values

I have 2 data's which I have mentioned below:

{
    id: intro.original
    publicationID: TRENTXWB_EM_R1
    hasBeenModifiedBy: [DAL]
    isModificationFor: null
    text: ... intro ...
}

{
    id: intro.dal
    publicationID: TRENTXWB_EM_R1
    hasBeenModifiedBy: []
    isModificationFor: DAL
    text: ... intro ...
}

Need to develop a filter query which checks "hasBeenModifiedBy".If the array contains 'DAL' it has to commit that datset(i.e. igonore the dataset). So, in this case, we have to get the second dataset which doesn't have "DAL" in "hasBeenModified" array.

Please suggest me an approach.

Upvotes: 1

Views: 319

Answers (0)

Related Questions