Module Ufind.Matching
Obtaining detailed matching results
Use this module if select_data
is not sufficient for your needs.
For instance, in order to obtain a global ranking of results obtained from different searches, use find
and to_list
instead of select_data
.
val data : 'a item → 'a
Extract the data from the matching item.
val find : ?folding:casefolding → matching_defect:matching_defect → 'a search_item Seq.t → string → 'a item Seq.t
find sitems name
immediately returns the lazy sequence ofitem
s matching the givenname
in the sequence of search itemssitems
. The returned sequence may be infinite ifsitems
is infinite.The
matching_defect
parameter defines the function used for matching: its first entry is (given by) the providedname
.Warning: the
folding
parameter must be the same as the one used to create thesitems
sequence.