App Connect Data Formatter Support Product Page

Answered

Fuzzysearch more than a single field

Asked 12 Jun 2018 10:22:09
1
has this question
12 Jun 2018 10:22:09 Charles Knight posted:
Hi,

How do I make Fuzzysearch search more than one field, my code is as follows but from within the data formatter > where > property I can only select one data field?


<div class="row machine-box" dmx-repeat:repeat1="serverconnect1.data.cat_id_Query.where(`age`, searchyear.value, &quot;fuzzySearch&quot"></div>

Replies

Replied 13 Jun 2018 15:36:43
13 Jun 2018 15:36:43 Teodor Kuduschiev replied:
Hello Charlie,
It is not possible to apply where filter to more than one column. Just do this on the server side instead, using the contains filter - in the query builder.
Replied 14 Jun 2018 22:04:34
14 Jun 2018 22:04:34 Charles Knight replied:
Hi Teodor

Would I create a new seperate query just for the search/filter, is there a tutorial on how this might be achieved please?
Replied 15 Jun 2018 06:40:27
15 Jun 2018 06:40:27 Teodor Kuduschiev replied:
No need of a separate query - just filter your current query: www.dmxzone.com/go/32764/dmxzone-app-connect-manual/32768/filtering-a-query-with-text-input
Replied 19 Jun 2018 07:08:05
19 Jun 2018 07:08:05 Charles Knight replied:
Thank you Teodor, using the 'filtering a query with text input' worked great.

A note for anyone reading this, you can have several GET Variables in your server action, I have one for filtering the records by category first then another for the query by text input on the results page. Actually in the Server Action query builder I added four table fields making sure to change And to Or - works like a treat!
Replied 19 Jun 2018 07:08:51
19 Jun 2018 07:08:51 Teodor Kuduschiev replied:
Yes, that is exactly how it is supposed to be setup.

Reply to this topic