Forum Replies Created

  • wpsolr
    Keymaster
    3 years, 12 months ago in reply to: Boost Search on Taxonomy Pages #31265

    I recommend to configure suggestions on your search boxes. It will help your visitors find out the exact moment where some unfixable typos are made, and fix them early before the sentence is too long.

    wpsolr
    Keymaster
    3 years, 12 months ago in reply to: Boost Search on Taxonomy Pages #31264

    Fuzzy can have strange behaviours.
    Here is the Elasticsearch fuzziness documentation if you’re interested.

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31247

    Yes, I edited my previous query and executed it, with same results.

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31244

    why there is ~ icon in our query

    “~” comes from the fuzzy option.

    we have boost for all fields, but still that boost isnt showing in the query

    “summary_t” is equivalent to “summary_t^1”

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31242

    “Diabetic~1” means that the search is on “Diabetic” with at most one letter different.

    Will match on:
    Diabetic
    Diabetik
    diabetic

    Will not match on (2 letters differences):
    Diabatik
    diabetik

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31240

    Here are my own tests, with a similar query:

    {
      "from": 0,
      "size": 1,
      "track_total_hits": true,
      "_source": [
        "title",
        "product_cat_str"
        ],
      "query": {
        "function_score": {
          "functions": [
            {
              "filter": {
                "match": {
                  "product_visibility_str": "featured"
                }
              },
              "weight": 11
            }
          ],
          "query": {
            "bool": {
              "must": {
                "query_string": {
                  "fields": [
                    "title^1",
                    "product_cat_str^1"
                  ],
                  "query": "(Kit~1 Blue~1)",
                  "default_operator": "AND"
                }
              }
            }
          }
        }
      }
    }
    {
      "took" : 3,
      "timed_out" : false,
      "_shards" : {
        "total" : 1,
        "successful" : 1,
        "skipped" : 0,
        "failed" : 0
      },
      "hits" : {
        "total" : {
          "value" : 76,
          "relation" : "eq"
        },
        "max_score" : 8.629168,
        "hits" : [
          {
            "_index" : "wpsolr-demo-woocommerce-100k-products",
            "_type" : "_doc",
            "_id" : "79452",
            "_score" : 8.629168,
            "_source" : {
              "product_cat_str" : [
                "Political Figures"
              ],
              "title" : "Kit Blue Blue"
            }
          }
        ]
      }
    }
    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31236

    Which field contains “retail” in your current ACF fields queried?

    “fields”: [“product_visibility_t^11”, “publication_date_t^12”, “title^10”, “summary_t”, “figures_str”, “tables_str”, “contents_str”, “synopsis_str”, “content^0.5”],
    “query”: “(retail~1)”,

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31207

    your query is now “retail~1”, which means “retail” with fuzzy search.
    What should it return, and what does it return?

    (remove the fuzzy option first, as it can have some strange effects).

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31205

    In your query, there are no keywords: it is not possible to test a search.

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31203

    Please activate the Query Monitor extension, and let me see what the WPSOLR query looks like.

    wpsolr
    Keymaster
    4 years ago in reply to: Sort by two custom fields #31201

    Boost will reorder results if the first sort is “Relevancy”.

    Concerning the second sort field, it cannot be the same as the fist sort field.

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31197

    Can you try with the exact custom field value (uppercase/lowercase)?

    If it works, then use the option “Copy to a text field” on each boosted field.
    (reindex all your data afterwards)

    wpsolr
    Keymaster
    4 years ago in reply to: Sort by two custom fields #31195

    You can select a default secondary sort on screen “2.5 Sort”

    wpsolr
    Keymaster

    This form is deprecated. On screen 2.1, select your own theme’s archive templates to display results queried by WPSOLR.

    wpsolr
    Keymaster
    4 years ago in reply to: Boost Search on Taxonomy Pages #31190

    Boosting is on or off. If it is on, you need to setup boost for all your custom fields that are searchable.

Viewing 15 posts - 841 through 855 (of 3,679 total)