XWiki Platform
  1. XWiki Platform
  2. XWIKI-9313

Can't find first word of an object property field with Solr

    Details

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

      Description

      It seems that users get no results when searching for annotations or comments when the type is DOCUMENT.

      Steps to reproduce:

      • create a document
      • add content
      • annotate the content
      • add some comments
      • search after your comments of annotations.
      • search will not display your annotations of comments

      Searching the page by its title will return the page, so the page is indexed.

        Activity

        Hide
        Thomas Mortagne added a comment - - edited

        Could you be more precise on what you put in your comment and what you are searching ?

        Show
        Thomas Mortagne added a comment - - edited Could you be more precise on what you put in your comment and what you are searching ?
        Hide
        Sorin Burjan added a comment - - edited

        In my comment I've put "my comment", and in my annotation content I have put "my annotation", and searching for "my comment" and "my annotation". I don't get my page listed. If I switch to All Types or Object property, I get my results.

        Show
        Sorin Burjan added a comment - - edited In my comment I've put "my comment", and in my annotation content I have put "my annotation", and searching for "my comment" and "my annotation". I don't get my page listed. If I switch to All Types or Object property, I get my results.
        Hide
        Thomas Mortagne added a comment -

        Try searching for "comment" for example. The issue you have does not have anything to do with comments but the way the first word in a property is indexed. Renaming the issue.

        Show
        Thomas Mortagne added a comment - Try searching for "comment" for example. The issue you have does not have anything to do with comments but the way the first word in a property is indexed. Renaming the issue.
        Hide
        Sorin Burjan added a comment -

        I don't think so. I got the same even when I've put only one word. try putting "comment" and "annotation", you should get the same behavior

        Show
        Sorin Burjan added a comment - I don't think so. I got the same even when I've put only one word. try putting "comment" and "annotation", you should get the same behavior
        Hide
        Thomas Mortagne added a comment -

        I tested with the last jetty/hsqldb distribution and I can assure you it works very well.

        Show
        Thomas Mortagne added a comment - I tested with the last jetty/hsqldb distribution and I can assure you it works very well.
        Hide
        Marius Dumitru Florea added a comment -

        I got the same even when I've put only one word.

        Sorin Burjan Put where, in the comment/annotation or in the search input?

        Show
        Marius Dumitru Florea added a comment - I got the same even when I've put only one word. Sorin Burjan Put where, in the comment/annotation or in the search input?
        Hide
        Sorin Burjan added a comment -

        in comment I've put "comment", in the annotation text i've put "annotation". Then I searched for "comment" and "annotation". So to answer your question, in both (comment/annotaion and search input)

        Show
        Sorin Burjan added a comment - in comment I've put "comment", in the annotation text i've put "annotation". Then I searched for "comment" and "annotation". So to answer your question, in both (comment/annotaion and search input)
        Hide
        Thomas Mortagne added a comment -

        Then you don't understand what I said. Again the issue is with the first word in the object property so if you put "comment" as you comment content then yes you are not going to find anything with "comment"...

        Show
        Thomas Mortagne added a comment - Then you don't understand what I said. Again the issue is with the first word in the object property so if you put "comment" as you comment content then yes you are not going to find anything with "comment"...
        Hide
        Sorin Burjan added a comment -

        I understand.

        Show
        Sorin Burjan added a comment - I understand.

          People

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

            Dates

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