Low Search not working on MSM
I'm replacing Supersearch with Low Search and Calendar search. EE 2.11.1, latest low search. Installed fine. Setup indexes and lexicon fine.
With no search parameter in the uri, I get results back. No pagination.
Submitting a search either via get or encoded, returns no results.
FYI I'm searching index' on site 1 from site 5.
Not sure where I'm crossed up. ANy ideas?
Replies
Low 25 May 2017 21:00
Can you share your template code, as well as the output of the template debugger (lines mentioning Low Search)?
Jim Wyse 26 May 2017 17:09
Here's the form:
{exp:low_search:form
result_page="low_search"
}
Search
<!--input class="searchbtn btn btn-lg" type="submit" name="submit" value="Search" / -->
{/exp:low_search:form}
Results loop:
{exp:low_search:results
query="{segment_2}"
site="1|8"
category="187"
channel="nps_global:calendar_events"
collection="events"
keywords:lang="en"
calendar:method="events"
limit="10"
paginate="both"
}
{event_title} {event_id}
Event Date: {event_start_date format="%F %j, %Y"} Time: {event_start_date format="%h:%i %A"}
{if no_results}No events found!{/if}
{paginate}
{current_page}/{total_pages} | {pagination_links}
{/paginate}
{/exp:low_search:results}
Not sure where this is going south.
No console errors. I am using the calendar extenion. but it doesn't matter wether I set the calendar:method or not.
here's the debug:
(0.011045 / 1.90MB) Tag: {exp:low_search:results query="eyJyZXN1bHRfcGFnZSI6Imxvd19zZWFyY2giLCJrZXl3b3JkcyI6InRyYWlsIn0" site="1|8" category="187" channel="nps_global:calendar_events" collection="events" keywords:lang="en" calendar:method="events" limit="10" paginate="both" }
(0.011161 / 1.91MB) Closing Tag Found
(0.011212 / 1.91MB) Tag: {exp:calendar:events entry_id="12784"}
(0.011249 / 1.91MB) Closing Tag Found
(0.011273 / 1.91MB) Processing Tags
(0.011299 / 1.92MB) Module Tag: Low_search/form
(0.011312 / 1.92MB) Module Tag: Low_search/results
(0.011323 / 1.92MB) Module Tag: Calendar/events
(0.011336 / 1.92MB) Including Files for Plugins and Modules
(0.011725 / 2.09MB) Files for Plugins and Modules All Included
(0.012388 / 2.10MB) Beginning Final Tag Data Processing
(0.012458 / 2.10MB) Calling Class/Method: Low_search/form
(0.012570 / 2.11MB) -> Class Called: Low_search
(0.013346 / 2.22MB) -> Method Called: form
(0.014961 / 2.27MB) -> Data Returned
(0.015002 / 2.27MB) Calling Class/Method: Low_search/results
(0.015737 / 2.27MB) -> Class Called: Low_search
(0.015931 / 2.27MB) -> Method Called: results
(0.017660 / 2.38MB) Low Search: Applying Low_search_filter_keywords
(0.020371 / 2.42MB) Low Search: Extending keywords with diacritics
(0.021389 / 2.42MB) Low Search: Keywords: trail
(0.021756 / 2.43MB) Low Search: Starting search (fulltext)
(0.023010 / 2.43MB) Low Search: Searched but found nothing
(0.023041 / 2.43MB) Low Search: Filters found no matches, returning no results
(0.023078 / 2.43MB) Returning No Results Content
I can send you admin access if needed. It's also running a self signed cert for the staging site.
I plan to install in a fresh stand alone installation when I can come up for air to see if it is the way the sites are configured or something else.
It returns results if no search term is entered. Currently it is set to encode. But I get the same either way.
Thanks,
Jim
Low 27 May 2017 07:00
In the output profiler, where the queries are displayed, what are the queries generated by Low Search and Calendar? Can you seen the site_id being included in those queries?
Low 27 May 2017 09:05
Also, can you try using site names rather than IDs? Does that make a difference?
Jim Wyse 30 May 2017 13:17
I have tried using both site short names and site IDS.
I have tried with both encoded and not encoded query string.
I have disabled Low Calendar Search just to eliminate variables.
this is my latest test page:
https://staging.paddlethepotomac.com/...
form:
{exp:low_search:form
result_page="low_search"
}
Search
<!--input class="searchbtn btn btn-lg" type="submit" name="submit" value="Search" / -->
{/exp:low_search:form}
Results:
{exp:low_search:results
site="nps_global"
category="187"
collection="blog|events|itineraries|places"
limit="10"
paginate="both"
}
{if count == 1}
Searched for {exp:low_search:keywords query="{segment_2}"}.
Search results: {absolute_results}
{/if}
{if no_results}No events found!{/if}
{title}
{low_search_excerpt}
{paginate}
{current_page}/{total_pages} | {pagination_links}
{/paginate}
{/exp:low_search:results}
Debug output:
(0.010579 / 1.91MB) Tag: {exp:low_search:results site="nps_global" category="187" collection="blog|events|itineraries|places" limit="10" paginate="both" }
(0.018614 / 2.25MB) Low Search: Parameters set: site="nps_global" category="187" collection="blog|events|itineraries|places" limit="10" paginate="both" channel="places|blog|calendar_events|itineraries"
{exp:low_search:keywords query="eyJyZXN1bHRfcGFnZSI6Imxvd19zZWFyY2giLCJrZXl3b3JkcyI6IlJpdmVyUGFsb296YSJ9"}
can we talk on the EE slack channel? @jim.wyse
I feel like I'm close.....
Thanks,
Jim
Low 30 May 2017 14:19
None of the collections had any searchable fields with a weight of 1 or higher, which means the index was actually empty. Weight 0 excludes a field from the index.
Changing the collections and rebuilding the indexes, as well as making sure the encoded query was being passed on to the Results tag with a query="" parameter, solved the issue.
Jim Wyse 31 May 2017 18:03
Thanks again!