Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9013

Multiple Select List values are not correctly indexed by Lucene

    Details

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

      Description

      Steps to reproduce :

      1. Create a class Space.C with a property P of type Database List and check the following fields : Multiselect and Relational Storage
      2. Add an object of type Space.C to document D
      3. Select value V for the property P
      4. Save the document
      5. Search with Lucene : +Space.C.P:V (you can use (V) if you want, but the result is going to be the same)

      Expected result : document D
      Real result : no document

      The reason why the result is not correct is the fact that Lucene indexes such a property value as String which results in something like : 'com.xpn.xwiki.objects.ListProperty$NotifyList@...' .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                ralucamorosan Raluca Stavro
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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