I suspect your problem is that termfreq is looking at _terms_, not
phrases. It has no sense of position, that's a higher-level construct.
So "Research Development" is searched as a single _term_, and there
are no two-word terms.

What use-case are you trying to solve? This seems like an XY problem perhaps..

Best,
Erick

On Sat, Apr 26, 2014 at 12:49 AM, ksmith <kamlesh.rangad...@gmail.com> wrote:
> hi Salman,
>
> i getting one problem in solr 4.6
> i have upgrade solr 1.4 to solr 4.6 because of i want to display search term
> count,
> and term count getting by solr term frequency
> but when i search only single word than its work fine i get perfect count
> but when i search multiple word within double quote it returning 0 count
> below is my code:
> termfreq(datafield, "Research")  its working fine
> termfreq(datafield, "Research Development") its return 0 but multiple
> document have the same word.
>
> i have try with different field type : text_gen, text_en_splitting, String
> but i didnt get exact result
> can you please help for this.
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/SOLR-4-not-utilizing-multi-CPU-cores-tp4105058p4133256.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to