> The below is my previous configuration which use to work > correctly. > > <searchComponent name="spellcheck" > class="solr.SpellCheckComponent"> > <str > name="queryAnalyzerFieldType">textSpell</str> > <lst name="spellchecker"> > <str name="name">default</str> > <str name="field">searchFields</str> > <str > name="spellcheckIndexDir">/solr/qa/tradedata/spellchecker</str> > <str name="buildOnCommit">true</str> > </lst> > </searchComponent> > > We use to search only in one field which is "searchFields" > but with > implementing dismax we are searching in different fields > like > > title^9.0 subtitle^3.0 author^2.0 desc shortdesc imprint > category isbn13 > isbn10 format series season bisacsub award. > > Do we need to modify the above configuration to include all > the above > fields:??? Please give me an example.
Searching and spell checking are independent. For example you can search on 10 fields, and create suggestions from 2 fields. Spell checker accepts one field in its configuration. So you need to populate this field with copyField. Using the fields that you want to use spell checking. And type of this field should be textSpell in your case. You can use above config. > > In the past we use to query twice to get first the > suggestions and then we > use to query using the first suggestion to show the data. > > Is there a way that we can do it in one step? Are you talking about queries that return 0 numFound? Re-executing the search like, described here http://sematext.com/products/dym-researcher/index.html Not out-of-the-box.