You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Matthew Haynes <ma...@matthaynes.net> on 2011/07/21 17:08:40 UTC
Display term frequency / phrase freqency for documents
Hi there,
I'd like to expose the termFrequency / phraseFrequency to the end user in my
application. For example I would like to be able to say "Your search term
appears X times in this document".
I can see these figures exposed via debugQuery=on, where I get output like
this ...
tf(phraseFreq=1.0)
Or this ...
tf(termFreq(transcript:ratifi)=4
Is there anyway to expose these figures in XML nodes though? I could parse
them from the debug output but that feels very hack !
Any help is much appreciated,
Many thanks
Matt
Re: Display term frequency / phrase freqency for documents
Posted by Chris Hostetter <ho...@fucit.org>.
: I'd like to expose the termFrequency / phraseFrequency to the end user in my
: application. For example I would like to be able to say "Your search term
: appears X times in this document".
:
: I can see these figures exposed via debugQuery=on, where I get output like
...
: Is there anyway to expose these figures in XML nodes though? I could parse
: them from the debug output but that feels very hack !
http://wiki.apache.org/solr/CommonQueryParameters#debug.explain.structured
-Hoss