I'm pretty sure that solr can be set up to recognize synonyms during searches. I'm wondering if it's possible to do the same with nicknames -- so for example searches for "Robert" would pull up records with "Bob" in them.
相关问题
- Solr Deduplication (dedupe) giving all zeros in si
- Solr (Sunspot), max results more than 30?
- Lucene Query on a DateField indexed by Solr
- Validate Title Case Full Name with Regex
- How to token a word which combined by two words wi
相关文章
- Solr - _version_ field must exist in schema and be
- SolrNet - Score always 0
- How can use the /export request handler via SolrJ?
- request counting for documents in apache solr
- How to search records between two coordinates usin
- Boost result by specified search term on top
- Faceted searching and categories in MySQL and Solr
- How to read data from solr/data/index
Just found a page where someone named Jon Moniaci exactly how to do this: http://bitsandpieces.jonmoniaci.com/2010/05/searching-common-nicknames-in-solr/
Basically, create a synonyms file with lines like so:
(Jon's file is here, derived from the listing of common male and female nicknames on http://usefulenglish.ru/)
Save to
english_names.txt
and add the following to your solr configuration:Then designate the author field as a
textEnglishName
field: