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

Incorrect order in Solr search results when using Solr 4

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1. Configure eZ Platform to use Solr
      2. Login to backoffice
      3. Create new article, for e.g.: "My new article"
      4. Run Solr reindex command
        php app/console ezplatform:reindex
      5. Go to Content then Search and type "My new article". You should see your new article at first place in the result list.
      6. Go to Content then Content browse and switch to Search tab. Type "My new article" in the input field and do search. You should see your new article on the last position. The customer does not see article at all because they have a lot of content.

      Conclusion
      Search (in Content -> Search) executes request with ContentQuery type. Search in UDR executes request with LocationQuery type. This is the reason of issue.

      For now, I see two possible solutions:

      1. Change request type (https://github.com/ezsystems/PlatformUIBundle/blob/master/Resources/public/js/views/universaldiscovery/ez-universaldiscoverysearchview.js#L163)
      2. Change Solr behavior - it seems that Solr uses LocationID ASC constraint during search query when LocationQuery is executed.

      Additional information from the customer

      When searching articles by exact name in content browse menu of the new eZ version 1.10, articles are not found.

      Solr logs
      See attachment.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: