Self-related article in the 'more like this' results

Self-related article in the 'more like this' results

Monday 24 January 2011 5:35:42 pm - 5 replies

Author Message

Paul Borgermans

Monday 07 February 2011 1:43:29 pm

Mmm, that should not happen: the MoreLikeThis query excludes the article with the node id specified through a dedicated Solr parameter (always on)

I could also not reproduce it locally either (eZ Find 2.3, but all older versions behave the same way)

Can you double check and maybe post the debug output part that lists the query sent to the backend?

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Sergey Gedeon

Thursday 10 February 2011 10:47:08 am

The query is

array(9) {
  ["SearchOffset"]=>
  int(0)
  ["SearchLimit"]=>
  int(5)
  ["Facet"]=>
  NULL
  ["SortBy"]=>
  NULL
  ["Filter"]=>
  NULL
  ["SearchContentClassID"]=>
  array(2) {
    [0]=>
    string(7) "article"
  }
  ["SearchSectionID"]=>
  NULL
  ["SearchSubTreeArray"]=>
  NULL
  ["AsObjects"]=>
  bool(true)
}

And there are no errors in the debug....

This error appears only for one node. I have run updatesearchindexsolr.php several times but this doesn't help me.

---------------------------------------
To Live Is To Die...
To Die Is To Wake...

Paul Borgermans

Friday 11 February 2011 7:54:31 am

try to run updatesearchindexsolr.php with the --clean-all option, I suspect there is some older/stale version still in the index.

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Sergey Gedeon

Tuesday 15 February 2011 2:54:29 am

try to run updatesearchindexsolr.php with the --clean-all option, I suspect there is some older/stale version still in the index.

hth

Paul

Thanks! I think '--clean-all' option has fix this problem! (now I can't reproduce this bug)

UPD: But now the search results are incorrect - not all classes are displayed... It looks like solr index cannot be updated

UPD2: The nodes are available in the search results only after manual editing of the objects

---------------------------------------
To Live Is To Die...
To Die Is To Wake...

Sergey Gedeon

Tuesday 15 February 2011 5:56:27 am

And the last update - if there are several installations on the server running updatesearchindexsolr.php with the '--clean-all' parameter is not safe. I think '--clean' is enough

---------------------------------------
To Live Is To Die...
To Die Is To Wake...

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.