0

Sol4のオートコンプリート機能に取り組んでいますが、フィルタークエリでtermfreqを使用できるかどうか疑問に思っています。私のクエリは次のようになります。

http://example.com/autocomplete/?q=ful&start=0&rows=5&&fl=Location,freq:termfreq(textng,'ful')

そして戻ります:

<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>

のようなことができるようになりたいですfq:termfreq(textng,'ful'):1

これが可能かどうか誰かが知っていますか?

4

1 に答える 1

0
fq={!frange l=1 u=10}termfreq(Location,'ful')

それをしますか

ORと組み合わせると、fq =の前に「(」が付いた奇妙な構文配置があります。

(fq={!frange l=1 u=10}termfreq(textng,'ful') OR {!frange l=1 u=10}termfreq(textng,'county')) 
于 2012-10-12T01:23:41.543 に答える