Token Counter
Hello, I would like to know if there is a trivial procedure/tool for displaying the number of appearances of each token from query results. Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Token-Counter-tp2227795p2227795.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Token Counter
On 1/10/2011 8:38 AM, supersoft wrote: Hello, I would like to know if there is a trivial procedure/tool for displaying the number of appearances of each token from query results. Thanks Unless I'm misunderstanding what you mean, this sounds exactly like facets. http://wiki.apache.org/solr/SolrFacetingOverview An example URL (rows=0 for less distraction): http://HOST:8983/solr/CORE/select/?q=horserows=0facet=truefacet.field=keywords Am I misunderstanding your question? Thanks, Shawn
Re: Token Counter
As I understand, a faceted search would be useful if keywords is a multivalued field and the its field value is just a token. I want to display the occurences of the tokens wich appear in a indexed (and stored) text field. -- View this message in context: http://lucene.472066.n3.nabble.com/Token-Counter-tp2227795p2228991.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Token Counter
Faceting will do this for you. Check out: http://wiki.apache.org/solr/SimpleFacetParameters#facet.field This param allows you to specify a field which should be treated as a facet. It will iterate over each Term in the field and generate a facet count using that Term as the constraint. For a text field, it actually does go over each of the indexed tokens. On Mon, Jan 10, 2011 at 10:11 AM, supersoft elarab...@gmail.com wrote: As I understand, a faceted search would be useful if keywords is a multivalued field and the its field value is just a token. I want to display the occurences of the tokens wich appear in a indexed (and stored) text field. -- View this message in context: http://lucene.472066.n3.nabble.com/Token-Counter-tp2227795p2228991.html Sent from the Solr - User mailing list archive at Nabble.com.