sajari / sdk-php

Official repository of the Search.io SDK for PHP
https://www.search.io
MIT License
8 stars 1 forks source link

Support "OR:" filter prefix #14

Closed mish15 closed 7 years ago

mish15 commented 8 years ago

Filters should allow a 4th component, which sets the sequential processing status. By default this is "AND", but can be changed to "OR" to allow the OR function between multiple filters. These are processed sequentially from the back, so as soon as an AND is hit, that filter must match or the filter will return false.

Example:

filters=!=category,|OR:dir1,news

The PHP SDK should pack this accordingly for the JSON and flattened queries.

mish15 commented 8 years ago

@dhowden need to think about nesting and potentially allowing full nesting instead of the simple combos we support now

dhowden commented 7 years ago

This can be achieved using the new API.