<@U01PL2YSG8L> i want to use hybrid search with m...
# community-help
a
@Kishore Nallan i want to use hybrid search with multiple keyword field like book_title,author ,publication can you suggest me what i should pass in query_by
Copy code
"searches": [
        {
          "query_by": "product_name,embedding",
          "q": "desktop copier",
          "collection": "products",
          "prefix": "false",
          "exclude_fields": "embedding",
          "per_page": 2
        }
k
There can be only one embedding field but can have multiple string fields for keyword search.
a
@Kishore Nallan only one embedding field means
how we can define embedding field
k
a
@Kishore Nallan books_schema = { 'name': collection_name, 'fields': [ {'name': 'bookId', 'type': 'int32','facet': True}, {'name': 'id', 'type': 'string'}, {'name': 'isbn', 'type': 'string','facet': True,'optional':True}, {'name': 'title', 'type': 'string'}, {'name': 'slug', 'type': 'string'}, {'name': 'isOutOfStock', 'type': 'string', 'facet': True}, {'name': 'author', 'type': 'string', 'facet': True}, {'name': 'bookCondition', 'type': 'string[]', 'facet': True, 'optional':True}, {'name': 'subject', 'type': 'string', 'facet': True, 'optional':True}, {'name': 'publication','type': 'string', 'facet': True,'optional':True}, {'name': 'category', 'type': 'string*', 'facet': True}, {'name': 'qty', 'type': 'int32'}, {'name': 'bookDescription', 'type': 'string', 'optional':True}, {'name': 'binding', 'type': 'string', 'facet': True}, {'name': 'language', 'type': 'string', 'facet': True}, {'name': 'keywords', 'type': 'string*', 'facet': True, 'optional':True}, {'name': 'bookType', 'type': 'int32', 'facet': True}, {'name': 'iDate', 'type': 'int32'}, {'name': 'parentCategory', 'type': 'string*', 'facet': True}, {'name': 'num_is_out_of_stack', 'type': 'int32'}, {'name': 'uDate', 'type': 'int32'}, {'name': 'mrp', 'type': 'int32', 'facet': True}, {'name': 'price', 'type': 'int32', 'facet': True}, {'name': 'discounPercent', 'type': 'int32', 'facet': True, 'optional':True}, {'name': 'cashbackPercent', 'type': 'int32', 'facet': True, 'optional':True}, {'name': 'agedGroup', 'type': 'string*', 'facet': True , 'optional':True}, {'name': 'imageUrl', 'type': 'string', 'facet': False}, {'name': 'categorySuggestion', 'type': 'string', 'facet': False , 'optional':True}, {'name': 'categoryPathId', 'type': 'string[]', 'facet': False,'optional':True}, ], "symbols_to_index": ["(", ")", "+", "?" ], 'default_sorting_field': 'bookId' } this is book store schema i want to embeded title , categorySuggestion