github appbaseio/reactivesearch-api 8.24.1

22 hours ago

Changes

  • feat(vector search): inherit value for applying vector search when vectorDataField is specified but value or queryVector isn't set in the component. This is a common scenario with ReactiveSearch UI kit where SearchBox (for suggestions or as input for kNN searching) and ReactiveList (vector search) are used in tandem.
  • fix (suggestions): payload parsing where object is received
{
    "query": [
        {
            "id": "term",
            "type": "term",
            "dataField": "tags.keyword",
            "value": "Fashion",
            "execute": false
        },
        {
            "id": "one-line-search",
            "type": "search",
            "dataField": "one_liner",
            "value": "dresses",
            "execute": false
        },
        {
            "id": "search",
            "vectorDataField": "vector_data", // since no value or queryVector is provided, will get embedding for dresses and apply kNN search against vector_data field. Requires configuration of AI preferences for this to work
            "includeFields": [
                "name",
                "one_liner",
                "tags"
            ],
            "react": {
                "and": [
                    "term",
                    "one-line-search"
                ]
            }
        }
    ],
    "settings": {
        "useCache": false
    }
}

Don't miss a new reactivesearch-api release

NewReleases is sending notifications on new releases.