Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2708

Lucene path index breaks when moving a node

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 5.4.0.Final
    • Indexing
    • None

    Description

      I am using ModeShape 5.4.0.Final with a lucene index provider. I have the following indexes defined:

      <index name="mixinTypes" provider-name="local" kind="nodeType" node-type="nt:base" columns="jcr:mixinTypes(STRING)" />
      <index name="primaryType" provider-name="local" kind="nodeType" node-type="nt:base" columns="jcr:primaryType(STRING)" />
      <index name="path" provider-name="local" kind="value" node-type="nt:base" columns="jcr:path(PATH)" />

      I have a query like this:

      SELECT * FROM [MYTYPE] WHERE PATH([MYTYPE]) LIKE PATH/%

      This works fine. The indexes are used and I get the expected result from the query.

      If, however, I do a session.move on the node at PATH, no child nodes are subsequently found when running the query even though they were there before (and still are).

      If I change to the local index provider things work as expected.

      So I suspect this is an issue with the lucene index provider.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jacobilsoe_jira Jacob Ilsø (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: