When using fuzzy search it ignore single word more than 9 characters

  • abdulazizasif
    Participant
    1 year, 4 months ago #54172

    Greetings,
    We are using WP Solr and Bonsai (OpenSearch) and using fuzzy search option.

    Now in this scenario if we search multiple words like “black faucet” it works where total word count is more than 9 characters but one word is not more than 9 characters.

    If we search the word like “deckplate” 8 characters it works.

    If we search the word like “panasonic” or “waterstone” it does not work as it is more than 9 characters. If we search word like “panason” it works. This issue is only with fuzzy option.

    we are forced to us fuzzy option as user do not search with exact SKU for example if a product SKU is “K1239807” sometime user does not enter first character like “k” and enters “1239807” and it works perfectly with fuzzy.

    wpsolr
    Keymaster
    1 year, 4 months ago #54173

    It is difficult to understand why each world should be less than 9 characters for the fuzzy operator. I checked in the Lucene documentation, but it is no mentioned.

    You could perhaps avoid fuzziness with a little trick (and better search speed and scalability):
    when you index your SKU, add the SKU without the first letter. For instance, index SKU array with ['K1239807', '1239807'].

    abdulazizasif
    Participant
    1 year, 4 months ago #54174

    That is exactly what we have noticed when we turn on fuzziness. Maybe it is a bug with Lucerne. Surprisingly it works for every word which is up to 9 characters and then it stops if the word is more than 9 characters. In your test environment can you please try and see if you have fuzzy enabled and search where search string is 10 or 11 character single word.

    The workaround to avoid fuzziness I will discuss with stakeholders and come back but removing first starting character was just an example. If we omit 2,3,4 starting characters we might have to do something like this [‘K1239807’, ‘1239807’,’239807′,39807′,’9807′]. Will there be any issue with that?

    wpsolr
    Keymaster
    1 year, 4 months ago #54175

    You can activate the query monitor add-on that will show you the exact Opensearch query syntax used.
    You can then execute/tweak the query in your Opensearch dashboard.

    If we omit 2,3,4 starting characters we might have to do something like this [‘K1239807’, ‘1239807’,’239807′,39807′,’9807′]. Will there be any issue with that?

    Fuzzy is limited to 2 characters. Using the “contains” operator instead in 2.1 with this fix should give you results on longer missing prefixes.
    On the other hand, fuzzy currently works on all fields

    abdulazizasif
    Participant
    1 year, 4 months ago #54178

    Hi,

    Here is the query from Query Monitor:

    { “from”: 0, “size”: 24, “sort”: [ { “_stock_i”: { “order”: “desc” } } ], “highlight”: { “require_field_match”: false, “pre_tags”: [ “<b>” ], “post_tags”: [ “<\/b>” ], “fields”: { “title”: { “fragment_size”: 1000, “number_of_fragments”: 1 } } }, “_source”: [ “id”, “PID”, “type”, “meta_type_s”, “title”, “numcomments”, “comments”, “displaydate”, “displaymodified”, “*categories_str”, “author”, “*post_thumbnail_href_str”, “*post_href_str”, “snippet_s” ], “query”: { “bool”: { “must”: { “query_string”: { “query”: “text:(panasonic~1)”, “default_operator”: “AND” } }, “filter”: { “bool”: { “must”: [ { “bool”: { “must”: { “terms”: { “type”: [ “product_variation” ] } } } }, { “bool”: { “must_not”: [ { “terms”: { “post_status_s”: [ “draft”, “pending”, “trash”, “future”, “private”, “auto-draft” ] } } ] } }, { “bool”: { “should”: [ { “bool”: { “must_not”: [ { “bool”: { “must”: { “exists”: { “field”: “is_excluded_s” } } } } ] } }, { “terms”: { “is_excluded_s”: [ “n” ] } } ] } }, { “bool”: { “should”: [ { “bool”: { “must_not”: [ { “terms”: { “type”: [ “product” ] } } ] } }, { “bool”: { “should”: [ { “bool”: { “must_not”: [ { “exists”: { “field”: “product_visibility_str” } } ] } }, { “bool”: { “must_not”: [ { “terms”: { “product_visibility_str”: [ “exclude-from-search” ] } } ] } } ] } } ] } }, { “bool”: { “must_not”: [ { “terms”: { “_id”: [ “wpsolr_doc_id_attachment” ] } } ] } } ] } } } }, “aggs”: { “flat_hierarchy_product_cat_str”: { “filter”: { “match_all”: {} }, “aggs”: { “flat_hierarchy_product_cat_str”: { “terms”: { “field”: “flat_hierarchy_product_cat_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “_stock_status_str”: { “filter”: { “match_all”: {} }, “aggs”: { “_stock_status_str”: { “terms”: { “field”: “_stock_status_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_brand_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_brand_str”: { “terms”: { “field”: “pa_brand_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “finish_code_str”: { “filter”: { “match_all”: {} }, “aggs”: { “finish_code_str”: { “terms”: { “field”: “finish_code_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “_sale_price_f”: { “filter”: { “match_all”: {} }, “aggs”: { “_sale_price_f”: { “stats”: { “field”: “_sale_price_f” } } } }, “pa_center-to-center_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_center-to-center_str”: { “terms”: { “field”: “pa_center-to-center_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_construction_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_construction_str”: { “terms”: { “field”: “pa_construction_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_installation_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_installation_str”: { “terms”: { “field”: “pa_installation_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_length_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_length_str”: { “terms”: { “field”: “pa_length_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_material_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_material_str”: { “terms”: { “field”: “pa_material_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_technology_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_technology_str”: { “terms”: { “field”: “pa_technology_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_valve-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_valve-type_str”: { “terms”: { “field”: “pa_valve-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_size_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_size_str”: { “terms”: { “field”: “pa_size_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_width_str”: { “terms”: { “field”: “pa_width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_height_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_height_str”: { “terms”: { “field”: “pa_height_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_depth_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_depth_str”: { “terms”: { “field”: “pa_depth_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_ada-product_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_ada-product_str”: { “terms”: { “field”: “pa_ada-product_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_availability_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_availability_str”: { “terms”: { “field”: “pa_availability_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_backset_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_backset_str”: { “terms”: { “field”: “pa_backset_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_backset-in-inches_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_backset-in-inches_str”: { “terms”: { “field”: “pa_backset-in-inches_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_backsplash-material_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_backsplash-material_str”: { “terms”: { “field”: “pa_backsplash-material_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bar-size_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bar-size_str”: { “terms”: { “field”: “pa_bar-size_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bar-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bar-width_str”: { “terms”: { “field”: “pa_bar-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_barrel-diameter_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_barrel-diameter_str”: { “terms”: { “field”: “pa_barrel-diameter_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-depth_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-depth_str”: { “terms”: { “field”: “pa_base-depth_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-diameter_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-diameter_str”: { “terms”: { “field”: “pa_base-diameter_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-diameter-length_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-diameter-length_str”: { “terms”: { “field”: “pa_base-diameter-length_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-diameter-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-diameter-width_str”: { “terms”: { “field”: “pa_base-diameter-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-dimensions_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-dimensions_str”: { “terms”: { “field”: “pa_base-dimensions_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-length_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-length_str”: { “terms”: { “field”: “pa_base-length_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-size_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-size_str”: { “terms”: { “field”: “pa_base-size_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-width_str”: { “terms”: { “field”: “pa_base-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_base-width-in-inches_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_base-width-in-inches_str”: { “terms”: { “field”: “pa_base-width-in-inches_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_basin-depth_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_basin-depth_str”: { “terms”: { “field”: “pa_basin-depth_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_basin-height_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_basin-height_str”: { “terms”: { “field”: “pa_basin-height_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_basin-split_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_basin-split_str”: { “terms”: { “field”: “pa_basin-split_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_basin-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_basin-width_str”: { “terms”: { “field”: “pa_basin-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bathroom-accessory-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bathroom-accessory-type_str”: { “terms”: { “field”: “pa_bathroom-accessory-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bathtub-color_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bathtub-color_str”: { “terms”: { “field”: “pa_bathtub-color_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bathtub-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bathtub-type_str”: { “terms”: { “field”: “pa_bathtub-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bidet-spray-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bidet-spray-type_str”: { “terms”: { “field”: “pa_bidet-spray-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bowl-depth_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bowl-depth_str”: { “terms”: { “field”: “pa_bowl-depth_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bowl-length_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bowl-length_str”: { “terms”: { “field”: “pa_bowl-length_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bowl-shape_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bowl-shape_str”: { “terms”: { “field”: “pa_bowl-shape_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_bowl-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_bowl-width_str”: { “terms”: { “field”: “pa_bowl-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_cabinet-finish_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_cabinet-finish_str”: { “terms”: { “field”: “pa_cabinet-finish_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_center-to-center-in-millimet_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_center-to-center-in-millimet_str”: { “terms”: { “field”: “pa_center-to-center-in-millimet_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_collection_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_collection_str”: { “terms”: { “field”: “pa_collection_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_color-option_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_color-option_str”: { “terms”: { “field”: “pa_color-option_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_construction-material_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_construction-material_str”: { “terms”: { “field”: “pa_construction-material_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_countertop-depth_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_countertop-depth_str”: { “terms”: { “field”: “pa_countertop-depth_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_countertop-finish_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_countertop-finish_str”: { “terms”: { “field”: “pa_countertop-finish_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_countertop-material_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_countertop-material_str”: { “terms”: { “field”: “pa_countertop-material_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_countertop-thickness_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_countertop-thickness_str”: { “terms”: { “field”: “pa_countertop-thickness_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_countertop-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_countertop-width_str”: { “terms”: { “field”: “pa_countertop-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_cutout-depth_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_cutout-depth_str”: { “terms”: { “field”: “pa_cutout-depth_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_cutout-length_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_cutout-length_str”: { “terms”: { “field”: “pa_cutout-length_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_cutout-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_cutout-width_str”: { “terms”: { “field”: “pa_cutout-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_depth-to-drain_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_depth-to-drain_str”: { “terms”: { “field”: “pa_depth-to-drain_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_diameter_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_diameter_str”: { “terms”: { “field”: “pa_diameter_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_dimensions_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_dimensions_str”: { “terms”: { “field”: “pa_dimensions_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_dimmable_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_dimmable_str”: { “terms”: { “field”: “pa_dimmable_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_diverter-included_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_diverter-included_str”: { “terms”: { “field”: “pa_diverter-included_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_drain-included_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_drain-included_str”: { “terms”: { “field”: “pa_drain-included_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_drain-location_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_drain-location_str”: { “terms”: { “field”: “pa_drain-location_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_drain-position_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_drain-position_str”: { “terms”: { “field”: “pa_drain-position_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_faucet_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_faucet_str”: { “terms”: { “field”: “pa_faucet_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_faucet-drilling_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_faucet-drilling_str”: { “terms”: { “field”: “pa_faucet-drilling_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_faucet-hole-drilling_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_faucet-hole-drilling_str”: { “terms”: { “field”: “pa_faucet-hole-drilling_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_faucet-installation-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_faucet-installation-type_str”: { “terms”: { “field”: “pa_faucet-installation-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_faucet-material_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_faucet-material_str”: { “terms”: { “field”: “pa_faucet-material_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_finish-group_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_finish-group_str”: { “terms”: { “field”: “pa_finish-group_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_generator-coverage-in-cubic_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_generator-coverage-in-cubic_str”: { “terms”: { “field”: “pa_generator-coverage-in-cubic_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_generator-gpc_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_generator-gpc_str”: { “terms”: { “field”: “pa_generator-gpc_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_generator-gpm_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_generator-gpm_str”: { “terms”: { “field”: “pa_generator-gpm_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_handing_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_handing_str”: { “terms”: { “field”: “pa_handing_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_handle_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_handle_str”: { “terms”: { “field”: “pa_handle_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_hardware-finish_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_hardware-finish_str”: { “terms”: { “field”: “pa_hardware-finish_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_height-in-centimeters_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_height-in-centimeters_str”: { “terms”: { “field”: “pa_height-in-centimeters_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_height-in-millimeters_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_height-in-millimeters_str”: { “terms”: { “field”: “pa_height-in-millimeters_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_hinge-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_hinge-type_str”: { “terms”: { “field”: “pa_hinge-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_installation-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_installation-type_str”: { “terms”: { “field”: “pa_installation-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_keyed_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_keyed_str”: { “terms”: { “field”: “pa_keyed_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_kitchen-accessory-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_kitchen-accessory-type_str”: { “terms”: { “field”: “pa_kitchen-accessory-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_kitchen-faucet-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_kitchen-faucet-type_str”: { “terms”: { “field”: “pa_kitchen-faucet-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_knob-diameter_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_knob-diameter_str”: { “terms”: { “field”: “pa_knob-diameter_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_knob-height_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_knob-height_str”: { “terms”: { “field”: “pa_knob-height_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_knob-lever-style_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_knob-lever-style_str”: { “terms”: { “field”: “pa_knob-lever-style_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_overflow_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_overflow_str”: { “terms”: { “field”: “pa_overflow_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_product-finish_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_product-finish_str”: { “terms”: { “field”: “pa_product-finish_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_product-finish-color_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_product-finish-color_str”: { “terms”: { “field”: “pa_product-finish-color_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_pull-center-to-center_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_pull-center-to-center_str”: { “terms”: { “field”: “pa_pull-center-to-center_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_rosette-size_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_rosette-size_str”: { “terms”: { “field”: “pa_rosette-size_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_rough-in_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_rough-in_str”: { “terms”: { “field”: “pa_rough-in_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_shower-door-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_shower-door-type_str”: { “terms”: { “field”: “pa_shower-door-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_shower-install-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_shower-install-type_str”: { “terms”: { “field”: “pa_shower-install-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_sink-finish_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_sink-finish_str”: { “terms”: { “field”: “pa_sink-finish_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_sink-height_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_sink-height_str”: { “terms”: { “field”: “pa_sink-height_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_sink-installation-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_sink-installation-type_str”: { “terms”: { “field”: “pa_sink-installation-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_sink-length_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_sink-length_str”: { “terms”: { “field”: “pa_sink-length_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_sink-material_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_sink-material_str”: { “terms”: { “field”: “pa_sink-material_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_sink-mount_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_sink-mount_str”: { “terms”: { “field”: “pa_sink-mount_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_sink-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_sink-width_str”: { “terms”: { “field”: “pa_sink-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_strike-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_strike-width_str”: { “terms”: { “field”: “pa_strike-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_style_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_style_str”: { “terms”: { “field”: “pa_style_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_subcategory_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_subcategory_str”: { “terms”: { “field”: “pa_subcategory_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_thickness_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_thickness_str”: { “terms”: { “field”: “pa_thickness_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_thread_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_thread_str”: { “terms”: { “field”: “pa_thread_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_thread-size_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_thread-size_str”: { “terms”: { “field”: “pa_thread-size_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_toilet-bowl-shape_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_toilet-bowl-shape_str”: { “terms”: { “field”: “pa_toilet-bowl-shape_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_toilet-install-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_toilet-install-type_str”: { “terms”: { “field”: “pa_toilet-install-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_trapway_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_trapway_str”: { “terms”: { “field”: “pa_trapway_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_trip-lever-location_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_trip-lever-location_str”: { “terms”: { “field”: “pa_trip-lever-location_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_tub-drain-location_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_tub-drain-location_str”: { “terms”: { “field”: “pa_tub-drain-location_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_tub-shape_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_tub-shape_str”: { “terms”: { “field”: “pa_tub-shape_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_vanity-base-color-finish_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_vanity-base-color-finish_str”: { “terms”: { “field”: “pa_vanity-base-color-finish_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_vanity-depth_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_vanity-depth_str”: { “terms”: { “field”: “pa_vanity-depth_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_vanity-height_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_vanity-height_str”: { “terms”: { “field”: “pa_vanity-height_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_vanity-includes-sink_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_vanity-includes-sink_str”: { “terms”: { “field”: “pa_vanity-includes-sink_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_vanity-type_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_vanity-type_str”: { “terms”: { “field”: “pa_vanity-type_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_vanity-width_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_vanity-width_str”: { “terms”: { “field”: “pa_vanity-width_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_water-conservation_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_water-conservation_str”: { “terms”: { “field”: “pa_water-conservation_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_water-feature_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_water-feature_str”: { “terms”: { “field”: “pa_water-feature_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_width-in-centimeters_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_width-in-centimeters_str”: { “terms”: { “field”: “pa_width-in-centimeters_str”, “size”: 999, “order”: { “_key”: “asc” } } } } }, “pa_concealed-hinges_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_concealed-hinges_str”: { “terms”: { “field”: “pa_concealed-hinges_str”, “size”: 999 } } } }, “pa_soap-dispenser_str”: { “filter”: { “match_all”: {} }, “aggs”: { “pa_soap-dispenser_str”: { “terms”: { “field”: “pa_soap-dispenser_str”, “size”: 999 } } } } } }
    —————————————————————————————————

    And the reposnse is:

    { “took”: 33, “timed_out”: false, “_shards”: { “total”: 3, “successful”: 3, “skipped”: 0, “failed”: 0 }, “hits”: { “total”: { “value”: 0, “relation”: “eq” }, “max_score”: null, “hits”: [] }, “aggregations”: { “pa_trapway_str”: { “doc_count”: 0, “pa_trapway_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_shower-door-type_str”: { “doc_count”: 0, “pa_shower-door-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_generator-gpm_str”: { “doc_count”: 0, “pa_generator-gpm_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_finish-group_str”: { “doc_count”: 0, “pa_finish-group_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-diameter-width_str”: { “doc_count”: 0, “pa_base-diameter-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_faucet-drilling_str”: { “doc_count”: 0, “pa_faucet-drilling_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_keyed_str”: { “doc_count”: 0, “pa_keyed_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_drain-included_str”: { “doc_count”: 0, “pa_drain-included_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-diameter-length_str”: { “doc_count”: 0, “pa_base-diameter-length_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “flat_hierarchy_product_cat_str”: { “doc_count”: 0, “flat_hierarchy_product_cat_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_countertop-material_str”: { “doc_count”: 0, “pa_countertop-material_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “_sale_price_f”: { “doc_count”: 0, “_sale_price_f”: { “count”: 0, “min”: null, “max”: null, “avg”: null, “sum”: 0 } }, “pa_barrel-diameter_str”: { “doc_count”: 0, “pa_barrel-diameter_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_brand_str”: { “doc_count”: 0, “pa_brand_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bidet-spray-type_str”: { “doc_count”: 0, “pa_bidet-spray-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_cutout-length_str”: { “doc_count”: 0, “pa_cutout-length_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_handing_str”: { “doc_count”: 0, “pa_handing_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_vanity-height_str”: { “doc_count”: 0, “pa_vanity-height_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_vanity-base-color-finish_str”: { “doc_count”: 0, “pa_vanity-base-color-finish_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_depth_str”: { “doc_count”: 0, “pa_depth_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_water-feature_str”: { “doc_count”: 0, “pa_water-feature_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_sink-mount_str”: { “doc_count”: 0, “pa_sink-mount_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_installation-type_str”: { “doc_count”: 0, “pa_installation-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_generator-coverage-in-cubic_str”: { “doc_count”: 0, “pa_generator-coverage-in-cubic_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-diameter_str”: { “doc_count”: 0, “pa_base-diameter_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_toilet-install-type_str”: { “doc_count”: 0, “pa_toilet-install-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_countertop-width_str”: { “doc_count”: 0, “pa_countertop-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_basin-height_str”: { “doc_count”: 0, “pa_basin-height_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_thread-size_str”: { “doc_count”: 0, “pa_thread-size_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-length_str”: { “doc_count”: 0, “pa_base-length_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_sink-height_str”: { “doc_count”: 0, “pa_sink-height_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “_stock_status_str”: { “doc_count”: 0, “_stock_status_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_material_str”: { “doc_count”: 0, “pa_material_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_soap-dispenser_str”: { “doc_count”: 0, “pa_soap-dispenser_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-width_str”: { “doc_count”: 0, “pa_base-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_diverter-included_str”: { “doc_count”: 0, “pa_diverter-included_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_cutout-depth_str”: { “doc_count”: 0, “pa_cutout-depth_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_countertop-finish_str”: { “doc_count”: 0, “pa_countertop-finish_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_faucet-material_str”: { “doc_count”: 0, “pa_faucet-material_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_dimensions_str”: { “doc_count”: 0, “pa_dimensions_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_cabinet-finish_str”: { “doc_count”: 0, “pa_cabinet-finish_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_vanity-depth_str”: { “doc_count”: 0, “pa_vanity-depth_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_size_str”: { “doc_count”: 0, “pa_size_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_trip-lever-location_str”: { “doc_count”: 0, “pa_trip-lever-location_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bowl-depth_str”: { “doc_count”: 0, “pa_bowl-depth_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_handle_str”: { “doc_count”: 0, “pa_handle_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_sink-length_str”: { “doc_count”: 0, “pa_sink-length_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_height-in-millimeters_str”: { “doc_count”: 0, “pa_height-in-millimeters_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_drain-location_str”: { “doc_count”: 0, “pa_drain-location_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_construction_str”: { “doc_count”: 0, “pa_construction_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_rough-in_str”: { “doc_count”: 0, “pa_rough-in_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-size_str”: { “doc_count”: 0, “pa_base-size_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_center-to-center_str”: { “doc_count”: 0, “pa_center-to-center_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_backset_str”: { “doc_count”: 0, “pa_backset_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bar-width_str”: { “doc_count”: 0, “pa_bar-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_drain-position_str”: { “doc_count”: 0, “pa_drain-position_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_pull-center-to-center_str”: { “doc_count”: 0, “pa_pull-center-to-center_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-depth_str”: { “doc_count”: 0, “pa_base-depth_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_basin-width_str”: { “doc_count”: 0, “pa_basin-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_color-option_str”: { “doc_count”: 0, “pa_color-option_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bowl-length_str”: { “doc_count”: 0, “pa_bowl-length_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_thread_str”: { “doc_count”: 0, “pa_thread_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_tub-shape_str”: { “doc_count”: 0, “pa_tub-shape_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_kitchen-accessory-type_str”: { “doc_count”: 0, “pa_kitchen-accessory-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_kitchen-faucet-type_str”: { “doc_count”: 0, “pa_kitchen-faucet-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_water-conservation_str”: { “doc_count”: 0, “pa_water-conservation_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_product-finish_str”: { “doc_count”: 0, “pa_product-finish_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bar-size_str”: { “doc_count”: 0, “pa_bar-size_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bowl-shape_str”: { “doc_count”: 0, “pa_bowl-shape_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_backsplash-material_str”: { “doc_count”: 0, “pa_backsplash-material_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_height_str”: { “doc_count”: 0, “pa_height_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_depth-to-drain_str”: { “doc_count”: 0, “pa_depth-to-drain_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_countertop-depth_str”: { “doc_count”: 0, “pa_countertop-depth_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_sink-installation-type_str”: { “doc_count”: 0, “pa_sink-installation-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_knob-lever-style_str”: { “doc_count”: 0, “pa_knob-lever-style_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_dimmable_str”: { “doc_count”: 0, “pa_dimmable_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_cutout-width_str”: { “doc_count”: 0, “pa_cutout-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-width-in-inches_str”: { “doc_count”: 0, “pa_base-width-in-inches_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_overflow_str”: { “doc_count”: 0, “pa_overflow_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_collection_str”: { “doc_count”: 0, “pa_collection_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_base-dimensions_str”: { “doc_count”: 0, “pa_base-dimensions_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_vanity-width_str”: { “doc_count”: 0, “pa_vanity-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bathtub-type_str”: { “doc_count”: 0, “pa_bathtub-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_style_str”: { “doc_count”: 0, “pa_style_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_countertop-thickness_str”: { “doc_count”: 0, “pa_countertop-thickness_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_shower-install-type_str”: { “doc_count”: 0, “pa_shower-install-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_construction-material_str”: { “doc_count”: 0, “pa_construction-material_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_valve-type_str”: { “doc_count”: 0, “pa_valve-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_sink-width_str”: { “doc_count”: 0, “pa_sink-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_vanity-includes-sink_str”: { “doc_count”: 0, “pa_vanity-includes-sink_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_product-finish-color_str”: { “doc_count”: 0, “pa_product-finish-color_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_knob-height_str”: { “doc_count”: 0, “pa_knob-height_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_subcategory_str”: { “doc_count”: 0, “pa_subcategory_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_basin-depth_str”: { “doc_count”: 0, “pa_basin-depth_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bowl-width_str”: { “doc_count”: 0, “pa_bowl-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bathtub-color_str”: { “doc_count”: 0, “pa_bathtub-color_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “finish_code_str”: { “doc_count”: 0, “finish_code_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_hardware-finish_str”: { “doc_count”: 0, “pa_hardware-finish_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_diameter_str”: { “doc_count”: 0, “pa_diameter_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_backset-in-inches_str”: { “doc_count”: 0, “pa_backset-in-inches_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_strike-width_str”: { “doc_count”: 0, “pa_strike-width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_concealed-hinges_str”: { “doc_count”: 0, “pa_concealed-hinges_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_bathroom-accessory-type_str”: { “doc_count”: 0, “pa_bathroom-accessory-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_faucet-hole-drilling_str”: { “doc_count”: 0, “pa_faucet-hole-drilling_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_center-to-center-in-millimet_str”: { “doc_count”: 0, “pa_center-to-center-in-millimet_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_sink-material_str”: { “doc_count”: 0, “pa_sink-material_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_height-in-centimeters_str”: { “doc_count”: 0, “pa_height-in-centimeters_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_availability_str”: { “doc_count”: 0, “pa_availability_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_length_str”: { “doc_count”: 0, “pa_length_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_rosette-size_str”: { “doc_count”: 0, “pa_rosette-size_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_thickness_str”: { “doc_count”: 0, “pa_thickness_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_width-in-centimeters_str”: { “doc_count”: 0, “pa_width-in-centimeters_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_toilet-bowl-shape_str”: { “doc_count”: 0, “pa_toilet-bowl-shape_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_sink-finish_str”: { “doc_count”: 0, “pa_sink-finish_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_basin-split_str”: { “doc_count”: 0, “pa_basin-split_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_hinge-type_str”: { “doc_count”: 0, “pa_hinge-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_faucet_str”: { “doc_count”: 0, “pa_faucet_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_knob-diameter_str”: { “doc_count”: 0, “pa_knob-diameter_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_ada-product_str”: { “doc_count”: 0, “pa_ada-product_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_faucet-installation-type_str”: { “doc_count”: 0, “pa_faucet-installation-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_generator-gpc_str”: { “doc_count”: 0, “pa_generator-gpc_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_width_str”: { “doc_count”: 0, “pa_width_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_technology_str”: { “doc_count”: 0, “pa_technology_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_vanity-type_str”: { “doc_count”: 0, “pa_vanity-type_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_tub-drain-location_str”: { “doc_count”: 0, “pa_tub-drain-location_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } }, “pa_installation_str”: { “doc_count”: 0, “pa_installation_str”: { “doc_count_error_upper_bound”: 0, “sum_other_doc_count”: 0, “buckets”: [] } } } }
    ————————————————————————————————–

    Thanks

    wpsolr
    Keymaster
    1 year, 4 months ago #54179

    You can copy the query and modify the fuzzy part (panasonic~1) in Opensearch dashboards to verify if Opensearch is limited to 9 characters with fuzziness.

    abdulazizasif
    Participant
    1 year, 4 months ago #54180

    Hi, We entered a ticket in Bonsai Opensearch and got this response from the Bonsai support.

    —————————–
    That said, there’s an additional wrinkle here: WP Solr itself disables fuzzy matching for single-word queries longer than 8 characters. That’s actually what’s happening in this case. When you search for “Panasonic” (9 characters), WP Solr skips fuzzy logic entirely. But when you search for “Panasoni” (8 characters), it allows fuzzy matching, and you get results. This is a performance optimization built into WP Solr to avoid overly expensive queries on long terms.

    So the good news is this isn’t a Bonsai bug: it’s expected behavior based on WP Solr’s query rules and how fuzzy matching works under the hood.

    That said, there are a few things you can try to improve it:

    1. Explicitly set fuzziness: 2 in your query instead of relying on "AUTO"
    2. Add a keyword match on fields like brand_str alongside fuzzy search
    3. Use edge n-grams or custom analyzers that tokenize brand names more effectively
    4. Run queries with explain=true to see exactly why a match is (or isn’t) happening

    wpsolr
    Keymaster
    1 year, 4 months ago #54182

    WPSOLR does not skip fuzzy logic on long words, as you can see with panasonic~1 in your query.

    abdulazizasif
    Participant
    1 year, 4 months ago #54183

    Is there any setting to tweak fuzziness on WP Solr dashboard? The bonsai support is asking us following

    Bonsai support has asked this question?
    Does WP Solr give you the options to tweak queries or fuzziness settings?

    wpsolr
    Keymaster
    1 year, 4 months ago #54184

    It is not possible to tweak queries or fuzziness. It would not work anyway, as the apparent 9 character limits is inside Lucene.

    You can fall back to my initial suggestion:

    You could perhaps avoid fuzziness with a little trick (and better search speed and scalability):
    when you index your SKU, add the SKU without the first letter. For instance, index SKU array with [‘K1239807’, ‘1239807’].

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.