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

ezajaxssearch.js do not allow to tranfer all supported params to search engine.

    XMLWordPrintable

Details

    Description

      ezajaxssearch.js has following part:

         var performSearch = function() {                                                                                                                     
                  var searchString = Y.get(ret.cfg.searchstring).get('value');
                  var data = 'SearchStr=' + searchString;
                  data += '&SearchLimit=10';   
                  data += '&SearchOffset=0';   
                                                                                                                                                                   
                  var backendUri = ret.cfg.backendUri ? ret.cfg.backendUri : 'ezflow::search' ;
                                                                                                                                                                   
                  if(searchString !== '') {
                      Y.io.ez(backendUri, {on: {success: successCallBack}, method: 'POST', data: data });
                  }
              }
      

      It allows to transfer from template only search string, but not SearchLimit, SearchOffset, or SearchContentClassID

      Because of this limitation , i cannot make , for example, two search boxes: one for search in blog with limit 10, and another in articles with limit 5.

      I think, here it should take all parameters supported by search engine.

      Attachments

        Activity

          People

            ls ls
            vytis vytis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: