Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.6.0
-
None
-
eZ Find 2.5
eZ Publish 4.5
Description
Failing auto-complete search in the Administration Interface causes searches to take a very long time. This is likely due to the size of the index, or at least the size of the ezf_sp_words field in the index. Because of the stalling auto-complete Ajax call, the user's actual search gets queued behind it and hangs.
The easiest way to directly reproduce the problem on the site is to run this on the command line, which is the auto-complete command sent to Solr by eZ Publish:
curl "http://solr:8983/solr/select?q=%2A%3A%2A&json.nl=arrarr&facet=true&facet.field=ezf_sp_words&facet.prefix=obama&facet.limit=1&wt=json"
You get an error such as:
- Too many values for UnInvertedField faceting on field ezf_sp_words
This can be quickly fixed in one of two ways:
- Turn off auto-complete in the Administration Interface (which is not possible at the moment because it does not respect the AutoComplete setting in ezfind.ini).
- Use 'facet.method' => 'enum' in the autocomplete function in extension/ezfind/classes/ezfindservercallfunctions.php, although this is noted as being less memory efficient.
Steps to reproduce
Run an auto-complete eZ Find search on a large index (ours is currently 7.5gb. which does not seem that large)
Attachments
Issue Links
- relates to
-
EZP-19596 Search form should not use ajax/jscore when auto-complete is disabled.
- Open