Partial search issues
In an attempt to make partial searches work against some site content with Low Search v5.0.5, I created this template to illustrate what is happening:
https://www.gillettechildrens.org/aja...
The collections have all had the lexicon and index rebuilt, but we are still having problems as outlined on those pages. In the search results when using that form, the parameters are output for debugging.
On a page like neurology ( https://www.gillettechildrens.org/con...), the field being searched is a Bloqs field. In the case of Novacheck ( https://www.gillettechildrens.org/car...), the field is the title of the entry as well as a custom field in the entry.
Suggestions to make this work appreciated!
Replies
Low 2 Apr 2018 18:31
Multiple things could be going on. First of all, make sure there are collections for each channel you need to search using keywords. Then, for each collection, make sure all (custom) fields that need to be added in the search index have a weight of one or higher. I recommend using weight 1 for all searchable fields and only increase the weight for small, specific fields like title or dedicated meta keywords. Searchable textareas or rich text fields are better off remaining at weight 1 rather than 2 or 3.
When your collections are set up correctly, you can tackle the templates.
If you need partial matches, you'll need to set
keywords:mode
andkeywords:loose
to override the default keywords:mode="auto" setting. I'd recommend usingkeywords:loose="right"
rather than both, for performance reasons mentioned in the Note here: https://gotolow.com/addons/low-search...If the page you're looking for doesn't end up in the results, make sure the field that contains the keywords has a weight of 1 and that the collection is included in the search.
Low Search does not search for alternative spellings / typos. Instead, you can use the in this example. You need to set the language for each collection and set the keywords:lang parameter on the Results tag for this to work.
Low 2 Apr 2018 18:33
Oh, note that I'm not sure how the Bloqs field makes its content searchable. I'm not familiar with the addon, so can't comment on it. The only thing I can say is that if a Bloqs field works with the native simple search module, it will also be searchable with LS.
Paul Larson 11 Apr 2018 16:43
Low,
Chatted with Litzinger.
The field (bloqs) in this case has no data in exp_channel_data. My gut says this is a bloqs issue. I'll let you know.
P.S. (this is Paul Larson again, though Justin on thread)
Biked for first commute of the year yesterday. Too much snow remains, but felt good!
Litzinger 11 Apr 2018 19:35
Chiming in ... this isn't entirely a Bloqs issue. Bloqs saves the concatenated field values to the correct location, but for some reason when Structure's after_channel_entry_save hook is called, it wipes the previously saved data from the table, thus there is nothing to search on. I uninstalled all add-ons except for Bloqs and it works fine. As soon as Structure is in the scenario, it doesn't work. Jace and I are both a bit confused on why this is happening.
Paul Larson 11 Apr 2018 21:01
Yes; I blamed Bloqs too early.
Low 12 Apr 2018 06:51
I guess that means we can rule out Low Search. ;)