Quantcast
Channel: Question and Answer » views-contextual-filters
Viewing all articles
Browse latest Browse all 57

Incomplete words searchs in Contextual Filter

$
0
0

I have a View with a Contextual filter. If I use a Content field, and provide the View with the filter, only exact matches will appear. For example, field title, and I introduce “shoe”, only those contents with title = “shoe” will be shown.

If I use a Search filter, then I can have shown results which contains “shoe”, for example: “sport shoes”.

But what if I want the user not to write the full word? if he/she writes “sho”, I would expect to still show “sport shoes”, “shoes”, etc.

I have seen the SQL query and part of the query reads

AND ( (search_index.word = 'sho')

I would expect it to read

AND ( (search_index.word LIKE 'sho%')

Is there some easy possibility of getting this expected result? I have tried Fuzzy Search but cannot manage to make it work, apparently I need exposed filters, etc., and would have to change my search form and many other thing.


Viewing all articles
Browse latest Browse all 57

Trending Articles