Announcement

Collapse
No announcement yet.

Exact Match on Search Results

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Exact Match on Search Results

    Hi guys, can anyone please help?

    How can the search feature be modified so that it only returns results when the whole search string is found in a particular page?
    Like an exact match feature.

    We have a particular product named 'PA-15' in the title (product short description) and the product full description. We also stock other products that begin with PA - so we are seeing this a lot of the time.

    When you do a search for PA-15, it brings up any page that has 'PA' or '15' in the title or description, which is 8367 different pages!
    We have the word 'parts' on our template pages and the results are returning every instance of those pages with that word in them when searching for our PA-15 product, so highlighted in red is parts or pack etc, along with the £15.99 bit of the price if it applies.

    Is there a way of modifying a pearl script to stop this happening?

    Please go to our site:
    http://www.laptopsandspares.com/
    Try a few searches to see what the problem is like:
    PA-15
    090-C (matches pages with just the '090' part of the search)

    I'm using version v7.0.6

    Thanks

    #2
    I just tested that here on my 7.0.4 and I cannot replicate it.

    I've made products with pa and pa-15 in their description. If I search for pa several show. If I search for pa-15 then only one shows.

    Woops - Update. If I have a product containing pa and later 15 then that shows when I search for pa-15.

    This can be fixed. Go to View / Search Settings / Search Options / Valid Characters and add the - character to that list (I put mine at the beginning).

    NB Use the [?] tool tip to check what's allowed before tinkering further there.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Norman,

      Thanks for the tip it seems to have done the trick!

      I've only tried it quickly on the test site that has a limited number of products so will have the change on our live site tomorrow.

      Thanks again

      Comment


        #4
        I have a similar problem, but without the dash. For example, if I type in the following into the search -

        TYPE J

        It just returns everything containing the word TYPE (the letter J appears in the footer of every page...)

        I've tried doing the search as a phrase with quotes -

        "TYPE J"

        which you would think would search for that specific phrase, but I still get the same 600 results, such as TYPE 240, TYPE S1 etc etc.

        What is the problem here? are the quotes not working, or is it ignoring the J because it's 'too common'?
        John

        Comment


          #5
          its probably in your list of exclusions
          Check in your search settings...there should be a long list of excluded words..single letters are probably in that list
          Tracey

          Comment


            #6
            yup that fixed it (I removed all the exclusions!), now it works even without the quotes.

            thanks.

            ps. like the new avtar - is that you?
            John

            Comment


              #7
              Originally posted by jxm28788
              yup that fixed it (I removed all the exclusions!), now it works even without the quotes.

              thanks.

              ps. like the new avtar - is that you?

              no probs.

              and I could say yes...but I might be lying
              Tracey

              Comment

              Working...
              X