Hi Ranveer, The error in the count of the facets its caused by the tokenized field that you are using, if you want to do facets for the whole string, use a fieldType that doesn't strip the the field in tokens like the string field.
Regards, Marco Martínez Bautista http://www.paradigmatecnologico.com Avenida de Europa, 26. Ática 5. 3ª Planta 28224 Pozuelo de Alarcón Tel.: 91 352 59 42 2010/4/19 Ranveer Kumar <ranveer.s...@gmail.com> > Hi Erick, > > My schema configuration is following. > > > <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> > <analyzer type="index"> > <charFilter class="solr.HTMLStripCharFilterFactory"/> > <tokenizer class="solr.HTMLStripWhitespaceTokenizerFactory"/> > <!--<tokenizer class="solr.WhitespaceTokenizerFactory"/>--> > <!-- in this example, we will only use synonyms at query time > <filter class="solr.SynonymFilterFactory" > synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/> > --> > <!-- Case insensitive stop word removal. > add enablePositionIncrements=true in both the index and query > analyzers to leave a 'gap' for more accurate phrase queries. > --> > <filter class="solr.StopFilterFactory" > ignoreCase="true" > words="stopwords.txt" > enablePositionIncrements="true" > /> > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="1" generateNumberParts="1" catenateWords="1" > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.SnowballPorterFilterFactory" language="English" > protected="protwords.txt"/> > </analyzer> > <analyzer type="query"> > <charFilter class="solr.HTMLStripCharFilterFactory"/><!-- > escapedTags="<,>"/> --> > <tokenizer class="solr.HTMLStripWhitespaceTokenizerFactory"/> > <!--<tokenizer class="solr.WhitespaceTokenizerFactory"/>--> > <!--<tokenizer class="solr.HTMLStripStandardTokenizerFactory"/>--> > > <!-- <filter class="solr.LengthFilterFactory" min="2" max="50" /> > --> > <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" > ignoreCase="true" expand="true"/> > <filter class="solr.StopFilterFactory" > ignoreCase="true" > words="stopwords.txt" > enablePositionIncrements="true" > /> > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="1" generateNumberParts="1" catenateWords="0" > catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.SnowballPorterFilterFactory" language="English" > protected="protwords.txt"/> > </analyzer> > </fieldType> > > > <field name="type" type="text" indexed="true" stored="true"/> > > <!-- copy field for default search--> > <copyField source="type" dest="text"/> > > > > > > On Mon, Apr 19, 2010 at 6:22 AM, Erick Erickson <erickerick...@gmail.com > >wrote: > > > Can we see the actual field definitions from your schema file. > > Ahmet's question is vital and is best answered if you'll > > copy/paste the relevant configuration entries.... But based > > on what you *have* posted, I'd guess you're trying to > > facet on tokenized fields, which is not recommended. > > > > You might take a look at: > > http://wiki.apache.org/solr/UsingMailingLists, it'll help you > > frame your questions in a manner that gets you your > > answers as fast as possibld. > > > > Best > > Erick > > > > On Sun, Apr 18, 2010 at 12:59 PM, Ranveer Kumar <ranveer.s...@gmail.com > > >wrote: > > > > > I am.using text for type, which is static. For example: type is a field > > and > > > I am using type for categorization. For news type I am using news and > for > > > blog using blog.. type is a text field. > > > > > > On Apr 17, 2010 8:38 PM, "Ahmet Arslan" <iori...@yahoo.com> wrote: > > > > > > > I am facing problem to get facet result count. I must be > wrong > > > somewhere. > I am getting proper ... > > > Are you faceting on a tokenized field? What is the fieldType of your > > field? > > > > > >