> For the complete documentation index, see [llms.txt](https://api-docs.rightsline.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.rightsline.com/search/examples/search-for-all-records-that-dont-have-a-value-for-a-specific-field.md).

# Search for all records that don't have a value for a specific field

If the records that are needed from a query are all of those where a specific characteristic hasn't been populated, the query needs to combine a $not query with a $range query where the range is all possible values ( \* TO \* ). For example, to find all rights that don't have an **end\_date** set:&#x20;

```
POST - https://ris.rightsline.com/v4/right/search
{
    "query": {
        "$not": [
            {
                "$range": [
                    "end_date",
                    "*",
                    "*"
                ]
            }
        ]
    }
}
```
