Query syntax and examples using your plugin?

  • bob_jamison
    2 years, 11 months ago #15858

    I’m reviewing using SOLR for a site of mine that has a lot of text content on it. How does one find a simple list of search syntax when using SOLR as a front-end user? And how do wildcards work?

    I looked through several of the examples on this list here: https://www.wpsolr.com/demos-wordpress-woocommerce-search-product-filters-100ks-products/

    But when I try to do basic wildcard searches on their sites, something like Philadel* or Philadel?hia they never work (I check to make sure there are articles with those words in them on the site). They don’t work on this site either, like if you search elasticsea*

    How would a user search a specific field as well? If I just want to search the title field, how would I input that as a search? *confused*

    2 years, 11 months ago #15859

    Solr syntax is not active on user front-end, because too technical. You can check on Amazon or other big websites.

    Keyword autocompletion can give you the keywords from partial words.

    Or you can activate the partial search option in WPSOLR settings, or even the fuzzy search. You can also configure your index with more advanced analysers than the default installed. For instance https://lucene.apache.org/solr/guide/6_6/tokenizers.html#Tokenizers-N-GramTokenizer

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

You must be logged in to reply to this topic.