DMXzone Server Connect Support Product Page
Answered
How to filter, for example "3 2 1" and still get result for "1 2 3"?
Asked 11 Apr 2017 05:43:08
1
has this question
11 Apr 2017 05:43:08 Firdaus Rohman posted:
Or when type "document old" , and still get result for "Old Document".Case: For example, record in database is "Old Document", when user type "document old" in filter input, the filter will return the result "Old Document", because the keywords "document" and "old" are contained in the word "Old Document" in the record.
Replies
Replied 11 Apr 2017 06:31:13
11 Apr 2017 06:31:13 Teodor Kuduschiev replied:
Hello Firdaus,
This could be achieved in the query builder, but you have to split the string and look word by word with contains operator. Use the split format like:
You can also use the conditions there so the filter only applies if the word exists, like
with operator 'Contains' and 'AND'
This could be achieved in the query builder, but you have to split the string and look word by word with contains operator. Use the split format like:
{{$_GET.search.split(" ")[0]}} this will return the first word {{$_GET.search.split(" ")[1]}} the second ... etc
You can also use the conditions there so the filter only applies if the word exists, like
{{$_GET.search.split(" ")[0]}} condition field: {{$_GET.search.split(" ")[0]}} {{$_GET.search.split(" ")[1]}} condition field: {{$_GET.search.split(" ")[1]}} {{$_GET.search.split(" ")[2]}} condition field: {{$_GET.search.split(" ")[2]}} etc.
with operator 'Contains' and 'AND'
Replied 11 Apr 2017 06:51:20
11 Apr 2017 06:51:20 Firdaus Rohman replied:
Hi Teodor,
Thank you for this very useful tips.
Thank you for this very useful tips.