sitecore8 - Sitecore Multilist with search returns nothing on the second page -
i having problem "multilist search" field. sitecore 8 instance. field using query fetch list lucene search index named "agents_master_index" :
templatefilter={3ea2cb30-0d04-4d73-9282-0103d8f34074} & startsearchlocation={95a07c68-36b6-4d0d-aae3-a2bfbf40c2c6}&sortfield=agent name i have multiple issues: 1) when open item based on template, slow returns results on first page of list, pagination , go-to-item buttons not working , field not showing number of pages.
2) if try template's standard values' item, above problem doesn't happen if click on "next page" button, returns nothing. looked search log file see what's going on. turns out on when returns first page results, executing following query:
4832 12:32:34 info executequeryagainstlucene (agents_master_index): +_datasource:sitecore +(+(+_path:11111111111111111111111111111111 +_latestversion:1) +(+_path:95a07c6836b64d0daae3a2bfbf40c2c6 +_template:3ea2cb300d044d7392820103d8f34074)) - filter : but return second page of results, multilist runs query:
http://localhost/sitecore/shell/applications/buckets/services/search.ashx?frombucketlistfield=*&sort=agent%20name&template={3ea2cb30-0d04-4d73-9282-0103d8f34074}&location=95a07c6836b64d0daae3a2bfbf40c2c6&pagesize=10&pagenumber=2&sc_content=master an returns json-like result empty:
({"currentpage":1,"location":"current item","pagenumbers":0,"searchcount":"0","searchtime":"04.3539","facets":null,"items":[],"launchtype":"contenteditor:launchtab","contextdata":[],"contextdataview":[]}) and in search log file being executed this:
4832 12:28:05 info search query : +(_content:* _name:* _displayname:*) +_template:3ea2cb300d044d7392820103d8f34074 +_path:95a07c6836b64d0daae3a2bfbf40c2c6 4832 12:28:05 info search index : sitecore_index 4832 12:28:05 info search took : 4346ms i don't understand why retrieve second page looking sitecore_index instead of "agents_master_index". wrong here? should fix query? how can force pick correct lucene index (if reason behind confusing problem?
any or insight appreciated.
edit
by way, startsearchlocation referring items bucket. "agents_master_index" referring same location in definition.
update
ok, far have managed work around second problem. after exchanging comments richard, concluded (at least in sitecore 8) content editor expects find items want search in multilist component in same index "root" item exists ( {11111111-1111-1111-1111-111111111111} ) added same crawler had in "agents_master_index" "sitecore_index" , worked!
however, still working on template's standard values item. first problem has not been solved yet. in other words, multilist doesn't work when clicking on second page or search on items have been created based on template, works on template (the standard values item)
i came across fix sitecore multilist , treelist search bug looks similar problem, tried didn't worked me :(
Comments
Post a Comment