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

Auto-complete error in Administration Interface causes searching to hang

    XMLWordPrintable

Details

    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

        Activity

          People

            Unassigned Unassigned
            rc@ez.no rc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: