Home » Forum
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Exclusion/negative searches

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

  • Exclusion/negative searches

    I am trying to verify that the Exclusion/negative search function on our intranet is working correctly and am having some trouble.

    If I search for 'restaurant chicken' with the Any Search Words selected I get 3 pages with both and 86 pages with one or the other. If I want to search for all pages that contain restaurant but not chicken I can search for 'restaurant -chicken' and get 80 results which seems right. If I enclose it in double quotes "restaurant -chicken" I get no results. That doesn't seem right.

    If I search for Latin I get 36 results. If I search for Kings I get 191 results. If I search for 'latin kings' I get 26 containing both and 175 containing one or the other. But, if I search for 'latin -kings' I still get 36 and can see the word 'kings' in the results. That doesn't seem right. If I search for "latin -kings" I get no results which doesn't seem right especially since I have found at least one document which contains the word 'Latin' but not the word 'King'.

    Am I doing something wrong or is this search not working correctly?

    Thanks

  • #2
    The minus sign can be used for negative searches in multiple word searches. However if you use double quotes, you are then doing an exact phrase search, and having a word excluded within an exact phrase doesn't make much sense, and is not supported search syntax.

    The 2nd case of searching latin -kings (without quotes) is more interesting. What is the URL for the search function?

    Comment


    • #3
      Thank you for your response. Since the example on the Search Tips page was in double-quotes I assumed that it meant that you were supposed to use double-quotes.

      As for the url with the 'Latin- Kings' search, and my other searches, it is an internal intranet site. Now that I know that the exclusion/negative search is to be done with the use of quotes my results are better. The Latin -Kings search is still coming back wrong but all of the documents returned are pdf files and maybe there is something in how those pdfs were created. I have tried several other searches without using the double quotes and are have worked successfully.

      Thanks

      Comment


      • #4
        Now that I know that the exclusion/negative search is to be done with the use of quotes...
        The only time you should use quotes is when you want an exact phrase search.

        Comment


        • #5
          Sorry, I meant WITHOUT the use of quotes. Thanks again.

          Comment


          • #6
            If you are still seeing a problem, ZIP up your search files and e-mail them to us. Give us the exact search scenario we need to reproduce the issue and include any other files needed to demonstrate the problem.
            --Ray
            Wrensoft Web Software
            Sydney, Australia
            Zoom Search Engine

            Comment


            • #7
              I will zip up my search files and send them to you. I will have to separate the search files in to two separate zip files because the 'zoom_pagetext.zdat' file is 29MB.

              The exact search that I am performing is 'latin -kings' with no quotes. From my search I get 36 results, nearly all of which contain the word 'kings' even though it shouldn't. All but three of four of the files that are found are pdf files which may end up totalling several MB. Do you need all of the pdf files or will a sample do?

              Thanks

              Comment


              • #8
                Just a sample will do (i.e. one PDF file which is included in the index and demonstratably contains the word "kings" but is not excluded with the negative search). And yes, please send us the index files.
                --Ray
                Wrensoft Web Software
                Sydney, Australia
                Zoom Search Engine

                Comment


                • #9
                  Sorry, I got sidetracked on a different problem. I will get them sent today.

                  UPDATE: Messages have been sent. Had to send three emails due to file size restrictions. I included all of the search files plus 4 of the affected pdf files.

                  Thanks again for your assistance.

                  Comment


                  • #10
                    We have confirmed that there is a bug with exclusion searches, when Stemming is enabled (and when the search word being excluded is affected by stemming).

                    This will be fixed in the next release (V6.0 build 1009). Disabling stemming (on the Languages panel) will workaround the issue but it might be best to wait for the next release.
                    --Ray
                    Wrensoft Web Software
                    Sydney, Australia
                    Zoom Search Engine

                    Comment


                    • #11
                      Thank you for your help with this. At this time, stemming is more important to us than the exclusion/negative searches are. We will leave stemming enabled and wait for the updated version.

                      Thanks again.

                      Comment

                      Working...
                      X