I’m working on an autocomplete functionality in Sol4, and I’m wondering if I can use termfreq in the filter query. My query looks like this:
http://example.com/autocomplete/?q=ful&start=0&rows=5&&fl=Location,freq:termfreq(textng,'ful')
and returns:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
</lst>
<result name="response" numFound="18" start="0">
<doc>
<str name="Location">Fullerton, CA</str>
<int name="freq">1</int>
</doc>
<doc>
<str name="Location">Fulton, NY</str>
<int name="freq">1</int>
</doc>
<doc>
<str name="Location">Fultondale, AL</str>
<int name="freq">1</int>
</doc>
<doc>
<str name="Location">Cal State University Fullerton</str>
<int name="freq">1</int>
</doc>
<doc>
<str name="Location">Full Sail Real World Education</str>
<int name="freq">1</int>
</doc>
</result>
</response>
I’d like to be able to do something like fq:termfreq(textng,'ful'):1.
Does anyone know if this is possible?
does it
There is some weird syntax placement with the “(” before fq= when combining it with OR: