Details
-
Bug
-
Resolution: Won't Fix
-
High
-
1.10.1
-
None
-
Solr 4.10.4
Description
Steps to reproduce
- Configure eZ Platform to use Solr
- Login to backoffice
- Create new article, for e.g.: "My new article"
- Run Solr reindex command
php app/console ezplatform:reindex
- Go to Content then Search and type "My new article". You should see your new article at first place in the result list.
- 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:
- Change request type (https://github.com/ezsystems/PlatformUIBundle/blob/master/Resources/public/js/views/universaldiscovery/ez-universaldiscoverysearchview.js#L163)
- 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.