Thanks both!

James, I like that approach. I'll give it a try. I forgot to mention I was
only using query-time synonyms but shouldn't be a problem in my case to add
synonyms during index-time.

Ryan



On Thu, 9 Jul 2015 at 22:07 Dyer, James <james.d...@ingramcontent.com>
wrote:

> Ryan,
>
> If you use index-time synonyms on the spellcheck field, this will give you
> what you want.
>
> For instance, if the document has "lawyer" and you index both terms
> "lawyer","attorney", then the spellchecker will see that "atorney" is 1
> edit away from an indexed term and will suggest "attorney".
>
> You'll need to have the same synonyms set up against the query field, but
> you have the option of making these query-time synonyms if you prefer.
>
> James Dyer
> Ingram Content Group
>
> -----Original Message-----
> From: Ryan Yacyshyn [mailto:ryan.yacys...@gmail.com]
> Sent: Thursday, July 09, 2015 2:28 AM
> To: solr-user@lucene.apache.org
> Subject: Spell checking the synonym list?
>
> Hi all,
>
> I'm wondering if it's possible to have spell checking performed on terms in
> the synonym list?
>
> For example, let's say I have documents with the word "lawyer" in them and
> I add "lawyer, attorney" in the synonyms.txt file. Then a query is made for
> the word "atorney". Is there any way to provide spell checking on this?
>
> Thanks,
> Ryan
>

Reply via email to