XWiki Platform
  1. XWiki Platform
  2. XWIKI-9261

Failure to find word if not separated by space from the next one

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      For example:

      "$escapetool.javascript"

      Then search for "escapetool". It won't be found.

      However if you have "$escapetool. javascript" then it's found.

        Activity

        Hide
        Vincent Massol added a comment - - edited

        Another example is to search for "features". It should return Main.Welcome since that page displays "You can then use the Sandbox space to try out your wiki's features.".

        The reason is that the content is:

        #if($hasEdit)You can then use the [[Sandbox space>>Sandbox.WebHome]] to try out your wiki's features.#end
        

        Thus I believe the issue is that there's "#end" after the dot.

        Show
        Vincent Massol added a comment - - edited Another example is to search for "features". It should return Main.Welcome since that page displays "You can then use the Sandbox space to try out your wiki's features.". The reason is that the content is: #if($hasEdit)You can then use the [[Sandbox space>>Sandbox.WebHome]] to try out your wiki's features.#end Thus I believe the issue is that there's "#end" after the dot.
        Hide
        Thomas Mortagne added a comment -

        It seems to be how the Solr default parser (actually a lucene parser behind the scene) works, it does not seems to consider dot as a separator.

        Show
        Thomas Mortagne added a comment - It seems to be how the Solr default parser (actually a lucene parser behind the scene) works, it does not seems to consider dot as a separator.
        Hide
        Thomas Mortagne added a comment - - edited

        What is the locale of the document you are testing ? Was it standard page (so no locale) ? The way the fields are indexed depending on the locale are very different.

        Show
        Thomas Mortagne added a comment - - edited What is the locale of the document you are testing ? Was it standard page (so no locale) ? The way the fields are indexed depending on the locale are very different.
        Hide
        Vincent Massol added a comment -

        Yes no locale, that was a default jetty/hsqldb XE.

        Show
        Vincent Massol added a comment - Yes no locale, that was a default jetty/hsqldb XE.

          People

          • Assignee:
            Thomas Mortagne
            Reporter:
            Vincent Massol
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: