Announcement

Collapse
No announcement yet.

Stopping partial word search

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

    Stopping partial word search

    Hi,

    when using the advanced search, I want to be able to search for whole words only.
    If someone types in 'pup' I want it to return 'pup' and not 'puppet' etc etc.

    Anyone know of a way of doing this?

    thanks
    www.squeakybee.co.uk
    Creative Gift Ideas - Jellycat toys - Home Accessories

    #2
    I am not very sure if this is possible but will run it by development to see if they can see a way to do it.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Here you go....

      You will have to edit 'Search.pm', which you will find in your site1 folder. Open it with notepad and search for
      $::MATCH_WHOLE_WORDS_ONLY = $::FALSE;

      Change this to read

      $::MATCH_WHOLE_WORDS_ONLY = $::TRUE;

      Save the file and update the store. Actinic will now only return results if the word searched for exists on the site.

      Kind regards,
      Bruce King
      SellerDeck

      Comment


        #4
        ok, now I want to do the opposite...

        on my site people are likely to search by product numbers, however some people may not search by the whole number.

        eg. some may search for product code 100-ABC1 by typing ABC1 and that is where the problem is.

        the default search matches partials, but only from the start.

        eg. all of the following would find the product -

        '10', '100', '100-', '100-A', '100-AB', '100-ABC', '100-ABC1'

        but these wouldn't work -

        'C1', 'BC1', 'ABC1', '-ABC1', '0-ABC1', '00-ABC1'

        Is there any way to get the search to find the search pattern within a word and not just at the beginning of it?
        John

        Comment


          #5
          I also have this issue and would like to know of a work around if possible.

          Comment


            #6
            John & Duncan,

            I am running this past development to get their response. Will keep you updated.

            Kind regards,
            Bruce King
            SellerDeck

            Comment


              #7
              Hi,

              Development have come back on this. With the current architecture this will not be something that is trivial to do, we use b-tree for search indices taking into consideration the overall performance. Though this can be done it would involve a lot of work, perhaps restructuring and would slow down the search. This will be something really simple to implement if we have an online Database.

              Kind regards,
              Bruce King
              SellerDeck

              Comment


                #8
                Be nice for a future release or as an option in a future release - wish list please Bruce.

                Comment


                  #9
                  Duncan,

                  Added to the wish list.

                  Kind regards,
                  Bruce King
                  SellerDeck

                  Comment


                    #10
                    As my site design progresses it looks like this will be a bigger problem that previously thought. As searching will be pretty big on this site is there an alternative search solution (eg. a 3rd party add-on?).

                    Also, the search seems to be very hit and miss - finding some words on a page, but not others (even though they are at the start of the customvar) - is there a known issue with the search in v7?
                    John

                    Comment


                      #11
                      Can other users who use a 3rd party searching tool with Actinic, or have experience with one, post your comments here. This has already been explained in post #7.

                      Kind regards,
                      Bruce King
                      SellerDeck

                      Comment


                        #12
                        for future reference, I found an answer to the customvar issue above - search does NOT search customvars, 'searchable' or not.

                        So I would be interested in 3rd party add-ons...
                        John

                        Comment


                          #13
                          Any Progress

                          I have a customer on the verge of purchasing the Dev package, but unless I can get round this product code search problem, the sale is lost and some support work for me
                          This problem of not being able to extract the end fragments of a text stream could be a deal breaker for numerous people who want to put a 2000 plus complex product catalogue on-line using Actinic SORRY!

                          Your comments or help would be appreciated

                          Regards Ian M

                          Comment


                            #14
                            Originally posted by Bruce
                            This will be something really simple to implement if we have an online Database.
                            Is it possible to upload some of the product data into a file on the server? ie. a mini online DB just to help searching?
                            John

                            Comment


                              #15
                              I've tried several 3rd party search tools, I haven't had much success as they all require rebuilds each time you make a change to the products. And I always forget!

                              Comment

                              Working...
                              X