Search Params Question
Hi Low,
Regarding keywords:mode and keywords:inflect, can you explain how these work when combined? For example, if we have the loose parameter set to “both” would setting the mode to “exact” negate the loose setting? Thanks.
Replies
Low 27 Oct 2015 07:38
Only keywords:mode="exact" has effect on keywords:inflect, as you're telling LS to search for exact terms. Setting keywords:loose to left, right, or both will always effect keywords:inflect -- the given keywords will not be inflected.
keywords:mode is either auto, all, any, or exact. Adding inflection to that will extend the keywords with the found inflections. For example, given the keywords jungle lion:
keywords:mode="all" keywords:inflect="yes"
=> (jungle OR jungles) AND (lion OR lions)
keywords:mode="any" keywords:inflect="yes"
=> (jungle OR jungles OR lion OR lions)
Also note that setting keywords:loose to left or both will result in a slower query than normal. It is recommended to only use this option with languages that do not have word delimiters, like Thai or Japanese.
gtowle 27 Oct 2015 12:42
Thanks, Low!