Hello I made a very simple custom similarity, mainly for testing and
learning:
public class StaticNormSimilarity extends DefaultSimilarity {
private static final Logger LOG =
LoggerFactory.getLogger(StaticNormSimilarity.class);
private float norm = 0.1f;
public void setNorm(float norm) {
uzzy queries are a lot faster but use an
> integer "edit distance" rather than a float "minimum similarity" factor (as
> used in your example.) Further, the edit distance is limited to 0-2, with 2
> being the default:
>
> name:Paul\ Morgan~
>
> -- Jack K
I know that a fuzzy query looks like this
field:term~0.5.
How can I do the same for a term that has a space in it but was
indexed as a single term for example with keywordtokenizer. I don't
want to do a sloppy search I wan't to do a fuzzy search but I can't
because both have the same syntax. For