lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: results while using SolrClient..
Date Wed, 17 Jan 2007 01:19:38 GMT

First off, this question is probably best directed to the solr-user list
... solr-dev is for discussions about the development of Solr internals,
solr-user is for questions baout using Solr.

Second: the SolrClient code is still in active development, it may be
buggy, and the API may changed.

Third, based on the description of your problem, it doesn't seem like it
has anything to do with SolrClient ... i'm guessing if you hit your index
directly and looked at the raw XML output you would see the same
information -- you may want to double check that to help verify where the
problem acctually is.

I suspect what's happening is you are trying ot get Facet Term counts on
a tokenized field -- a field which uses stemming.  please take a look at
this wiki page, which has some good information on schema design issues
you should consider if you plan on doing faceted searches...

   http://wiki.apache.org/solr/SolrFacetingOverview


: Date: Mon, 15 Jan 2007 19:56:57 -0600
: From: "Cook, Jeryl" <JCook@innodata-isogen.com>
: Reply-To: solr-dev@lucene.apache.org
: To: solr-dev@lucene.apache.org
: Subject: results while using SolrClient..
:
: When I perform a search from indexed items..
:
: The count name only shows partial count name, however the results show
: the full name
:
:
:
: The count Name value, shows partial state " texa ", even though in the
: index is Texas for a document.
:
: And also if I put United States, it shows a count.getName() of  "Unit",
: and one only  "state".. it seems to break up if it a white space, or
:
: If it believes it is plural.. is it a way to tern this off?
:
:
:
:                   QueryResults results = client.query( query );
:
:                   logger.debug( "got: "+results.getNumFound() + " ::
: time "+results.getQTime() );
:
:
:
:                   for(FieldFacet facet: results.getFacets()){
:
:                         logger.info( "facet name: [" + facet.getName() +
: "] value count: [" + facet.getValueCount()+ "]");
:
:
:
:                         if ( facet.getValueCount() != 0){
:
:                               for(Count count : facet.getValues() ){
:
:                                     logger.info( "          count Name:
: [" + count.getName() + "] , count: [" + count.getCount() + "]");
:
:
:                               }
:
:                         }
:
:                   }
:
:
:
: Jeryl
:
:



-Hoss


Mime
View raw message