How to use termfreq(field,value) for both the exact match and partial match in solr?

40 views Asked by At

I'm using solr5.3 in which i have column like document In which i will store the entire html page on it, now i have application which search both the exact and partial search from that particular column in solr. and also i'm calculating hits for it by using below formula

sum(0,termfreq(field,"{value}")

can i have regrx for the value column:


{value} for exact match
{value*} for partial match

I want the sum termfreq to caluclate both the exact match and partial match count.

0

There are 0 answers