This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Default Search criteria for Product Searches

 1IM 7.1.2.  When you go to the request page in ITShop, the search field (highlighted below) defaults to using a "Starts with" search.  How do you change that to use a "Contains" search?  This would allow the user to type "test" in that box and it would find products that had that anywhere in the name.

Thank you,

Craig

 

Parents
  • Hi Craig,

    first of all, can you check if the following configuration parameter is turned on Common\Indexing\IndexNonTokenChars?

    And for the explanation. You have to keep in mind that an index search based on tokens (like a google search or several others) work differently compared with a SQL like search.

    In the examples, John and Doe are tokens and can be matched directly and will only be matched if the token can be matched exactly. This has nothing to do with a wildcard search. John OR Doe means that all entries will be returned that match either with the token John or the token Doe. No wildcard search involved here.

    But back to your case. The default setting ensures that a search for Doe will not be an exact search as "Doe" would ensure but the search will be for Doe* so that entries like Does OR Doerdel will be found as well. Remember, the token for Doerdel is Doerdel and not Doe.

    And in regards to your *contains* search. If we would activate this ootb, the customer would lose the ability to present the search results while you type.

Reply
  • Hi Craig,

    first of all, can you check if the following configuration parameter is turned on Common\Indexing\IndexNonTokenChars?

    And for the explanation. You have to keep in mind that an index search based on tokens (like a google search or several others) work differently compared with a SQL like search.

    In the examples, John and Doe are tokens and can be matched directly and will only be matched if the token can be matched exactly. This has nothing to do with a wildcard search. John OR Doe means that all entries will be returned that match either with the token John or the token Doe. No wildcard search involved here.

    But back to your case. The default setting ensures that a search for Doe will not be an exact search as "Doe" would ensure but the search will be for Doe* so that entries like Does OR Doerdel will be found as well. Remember, the token for Doerdel is Doerdel and not Doe.

    And in regards to your *contains* search. If we would activate this ootb, the customer would lose the ability to present the search results while you type.

Children
No Data