How can I access parameters/settings from schema.xml from my custom similarity implementation

2013-07-03 Thread Gyozo Kudor
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) {

Re: How can you do a fuzzy query with a single term that contains spaces

2012-10-18 Thread Gyozo Kudor
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

How can you do a fuzzy query with a single term that contains spaces

2012-10-18 Thread Gyozo Kudor
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