Matching periods in query
In Coveo for Sitecore, we are trying to match queries against user generated data (one of which is a field called title). Because it isn't all uniform, we have users entering different formats of the same title. For instance one might enter PhD and another, Ph.D.
Since these titles are among the fields that are searchable, and so, we'd like to ensure that when a person searches for PhD we also return Ph.D. etc. I could normalize them at index time and store/display them uniformly, but is there a way that this can be done at search time as well?
The problem isn't restricted to just PhD. Other examples in use are MS/M.S., MD/M.D., MPharm/M.Pharm. etc.
I would offer two options.
The manual option would be to use the thesaurus.
The semi-automatic option would be to use a conversion script to parse the Title and add the synonym to a custom field ex: extendedTitle, which would be free text searchable.
So the item would have:
- Title: MS
- extendedTitle: M.S
If you are using Coveo for Sitecore, you would want to use item processors instead of conversion scripts.
The feature you are referring to is called a Thesaurus. This is a dictionary of query expansions mainly for synonyms and acronyms. You can define thesaurus entries in the CES Admin Tool for your entire index. Here's a few documentation links about the thesaurus and how to use it:
This answer looks like it might address my needs but I'm not sure. I'm on the business user side of things.
We have quite a list of parts such as PGR-3300. We find that people will search for part names with a dash, with a space and with no space. Coveo for Sitecore is returning results using the dash and a space, but not when people combine both halves into one term such as "PGR3300."
I know I can use the thesaurus, but that would be time consuming give the number we have. Would the item processor address this? Thanks!