Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26522

Solr Search Engine Bundle: Solr index not updated when moving locations

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Prepare an eZ Publish + Solr Search Engine Bundle test installation. Make sure the Solr service is running;

      Ref: https://doc.ez.no/display/EZP/Solr+Search+Engine+Bundle

      2. On the eZ Publish admin interface, create a new user (e.g. "Test User") under the "Anonymous Users" user group;
      3. On the Solr admin interface, search for the newly created user e.g. http://localhost:8983/solr/collection1/select?q=Test+User&wt=json&indent=true
      4. On the resulting json structure, verify the parent node Id for "Test User". In this test it's 44, which corresponds to the "Anonymous Users" user group, as expected:

              "location_parent_id_mid": [
                "44"
              ],
              "location_remote_id_mid": [
                "9095310cea09738351e4362aa53bed27"
              ],
              "location_path_string_mid": [
                "/1/5/44/136/"
              ],
              "main_location_id": "136",
              "main_location_parent_id": "44",
              "main_location_remote_id_id": "9095310cea09738351e4362aa53bed27",
              "main_location_visible_b": true,
              "main_location_path_id": "/1/5/44/136/",
              "main_location_depth_i": 3,
              "main_location_priority_i": 0,
              "group_mid": [
                "2"
              ],
      

      5. Back to the eZ Publish admin interface, move "Test User" to another user group. In this test, the user was moved to "Administrator users" which has a node Id of 13;
      6. On the Solr admin interface, search again for "Test User". The parent node Id should now be 13, but it's still 44.

      Note: when the user location was updated, the following was registered on the Solr log:

      2329886 [qtp1847509784-23] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening Searcher@7bc16f68[collection1] realtime
      2329890 [qtp1847509784-23] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={wt=json} {deleteByQuery=_root_:content133lang* (-1549446679996923904)} 0 19
      2329895 [qtp1847509784-21] INFO  org.apache.solr.update.UpdateHandler  – start commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}
      2329897 [qtp1847509784-21] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening Searcher@3204f48c[collection1] main
      2329898 [qtp1847509784-21] INFO  org.apache.solr.update.UpdateHandler  – end_commit_flush
      2329898 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener sending requests to Searcher@3204f48c[collection1] main{StandardDirectoryReader(segments_1e:465:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6)}
      2329902 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener done.
      2329904 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Registered new searcher Searcher@3204f48c[collection1] main{StandardDirectoryReader(segments_1e:465:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6)}
      2329916 [qtp1847509784-21] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={} {commit=} 0 21
      2330011 [qtp1847509784-15] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={wt=json} {add=[content133langenggb (1549446680105975808)]} 0 39
      2330019 [qtp1847509784-20] INFO  org.apache.solr.update.UpdateHandler  – start commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}
      2330098 [qtp1847509784-20] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening Searcher@4f9d9eb2[collection1] main
      2330104 [qtp1847509784-20] INFO  org.apache.solr.update.UpdateHandler  – end_commit_flush
      2330105 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener sending requests to Searcher@4f9d9eb2[collection1] main{StandardDirectoryReader(segments_1e:467:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6 _54(4.10.4):C2)}
      2330107 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener done.
      2330109 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Registered new searcher Searcher@4f9d9eb2[collection1] main{StandardDirectoryReader(segments_1e:467:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6 _54(4.10.4):C2)}
      2330114 [qtp1847509784-20] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={} {commit=} 0 96
      2330124 [qtp1847509784-19] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening Searcher@5343c7c5[collection1] realtime
      2330127 [qtp1847509784-19] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={wt=json} {deleteByQuery=_root_:content133lang* (-1549446680256970752)} 0 9
      2330135 [qtp1847509784-17] INFO  org.apache.solr.update.UpdateHandler  – start commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}
      2330141 [qtp1847509784-17] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening Searcher@6173d6e9[collection1] main
      2330152 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener sending requests to Searcher@6173d6e9[collection1] main{StandardDirectoryReader(segments_1e:469:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6)}
      2330152 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener done.
      2330154 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Registered new searcher Searcher@6173d6e9[collection1] main{StandardDirectoryReader(segments_1e:469:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6)}
      2330157 [qtp1847509784-17] INFO  org.apache.solr.update.UpdateHandler  – end_commit_flush
      2330166 [qtp1847509784-17] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={} {commit=} 0 32
      2330234 [qtp1847509784-18] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={wt=json} {add=[content133langenggb (1549446680330371072)]} 0 50
      2330240 [qtp1847509784-22] INFO  org.apache.solr.update.UpdateHandler  – start commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}
      2330323 [qtp1847509784-22] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening Searcher@39151929[collection1] main
      2330326 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener sending requests to Searcher@39151929[collection1] main{StandardDirectoryReader(segments_1e:471:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6 _55(4.10.4):C2)}
      2330329 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener done.
      2330333 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Registered new searcher Searcher@39151929[collection1] main{StandardDirectoryReader(segments_1e:471:nrt _4m(4.10.4):C100 _4l(4.10.4):C10 _4n(4.10.4):C10 _4o(4.10.4):C10 _4p(4.10.4):C10 _4q(4.10.4):C10 _4r(4.10.4):C10 _4s(4.10.4):C6 _55(4.10.4):C2)}
      2330334 [qtp1847509784-22] INFO  org.apache.solr.update.UpdateHandler  – end_commit_flush
      2330338 [qtp1847509784-22] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [collection1] webapp=/solr path=/update params={} {commit=} 0 98
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: