-8

I'm currently using cf 10 and making alot of use using cfsearch (solr) and I'm just wondering if there is a way to report / record what people are searching for on my website.

I have read that this is possible when using solr directly on other platforms... So I'm hoping there is an easy way to retrieve this via a cf tag

Any ideas greatly appreciated.

user125264
  • 1,809
  • 2
  • 27
  • 54
  • 9
    That's quite a misleading question title, innit? – Adam Cameron May 09 '14 at 09:23
  • 2
    Assuming you control the form that is used to submit the search parameters, you can simply grab the contents of the search field(s) (before or after you have completed your search) and store that information however you see fit. – Scott Stroz May 09 '14 at 11:27
  • I'd make than an "Answer", @ScottStroz. It's a fairly vague answer, but it matches the vagueness of the question, and is - accordingly - completely fitting. – Adam Cameron May 09 '14 at 11:30
  • Expanding on @ScottStroz's comment, it doesn't have to be before or after. With cfthread it can be at the same time. – Dan Bracuk May 09 '14 at 11:44

1 Answers1

2

Assuming you control the form that is used to submit the search parameters, you can simply grab the contents of the search field(s) (before or after you have completed your search - or as Dan pointed out, you could spin that process off into a cfthread to be done concurrently) and store that information however you see fit.

Scott Stroz
  • 7,510
  • 2
  • 21
  • 25