I have posted a question about how to add limited data based on the required field.
I now want to be able to exclude all data with a set type, so basically a where not equal too.
cbft.NewMatchQuery("Available").Field("xxxx"),
The above works once you set the Analyser to 'keyword'. But not I want to be able to remove data based on a status.
cbft.NewMatchQuery("Not Available").Field("xxxx"),
All that does is return the records I have with the status of 'Not Available' but I want to be able to return all records where the status is anything other than 'Not Available'.
I have looked into NewMatchNoneQuery
but that does not take the availability to set a field name to it and does not work anyway.