Developer forum

Forum » CMS - Standard features » Query statistics of string search

Query statistics of string search

Anders Ebdrup
Anders Ebdrup
Reply

Hello,

Can anyone help me to setup tracking for searches, as a search for "zenar" in the tracking gives this result, where I would expect only to have one row with the value "zenar" and not 5 separate rows for each letter.

 

Best regards, Anders


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Andres,

It looks like the search string was analyzed. Looking in one of my projects using the tracking, I see that I get the same behavior. This looks like the default functionality in DW.

Maybe DW can help us with a suggestion on how to avoid this type of analysis in the tracking of search strings.

Adrian

 
Dynamicweb Employee
Carsten Boll
Reply

Isn't this because type-ahead search executes a new query every time a letter is added?

 
Anders Ebdrup
Anders Ebdrup
Reply

nope..., then it should have been:

  • z
  • ze
  • zen
  • zena
  • zenar
 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

Any update on this one??

 

Best regards, Anders

 
Peter Krusell
Reply

+1

We have a client that has put query statistics up as a fixed requirement, so we need to be able to show a working solution with the string queries.

Thanks
/Peter

 
Suzi Louring
Suzi Louring
Reply

+1
I'm getting this in DW 9.15.1, Swift 1.18
q=her

 
Anders Ebdrup
Anders Ebdrup
Reply

Any update here?

 
Peter Krusell
Reply

Hi,
A workaround we are using in one solution is according to the screenhot. Basically there is an extra query param "eq" of type string[] array. For a sring[] we get ok statistics with a full word on each row. But we also keep the "q" param as regular string to still get the query result behavior as desired / as before.

Query_statistics_of_string_search.jpg

 

You must be logged in to post in the forum