lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <benedetti.ale...@gmail.com>
Subject Re: Proximity searching in percentage
Date Thu, 07 May 2015 12:00:10 GMT
Hi !
Currently Solr builds FST to provide proper fuzzy search or spellcheck
suggestions based on the string distance .
The current default algorithm is the Levenstein distance ( that returns the
number of edit as distance metric).
In your case you should calculate client side, the edit you want to apply
to your search.
In your client code, should be not difficult to process the query and apply
the proper number of edit depending on the length.

Anyway the max edit for the levenstein default distance is fixed to 2 .

Cheers



2015-05-05 10:24 GMT+01:00 Zheng Lin Edwin Yeo <edwinyeozl@gmail.com>:

> Hi,
>
> Would like to check, how do we implement character proximity searching
> that's in terms of percentage with regards to the length of the word,
> instead of a fixed number of edit distance (characters)?
>
> For example, if we have a proximity of 20%, a word with 5 characters will
> have an edit distance of 1, and a word with 10 characters will
> automatically have an edit distance of 2.
>
> Will Solr be able to do that for us?
>
> Regards,
> Edwin
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message