From 3b22e5387feadf786205b6afa0938db951ea7e68 Mon Sep 17 00:00:00 2001 From: Panayiotis Date: Thu, 1 Nov 2018 18:46:31 +0000 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ed13215..e63b91e 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,13 @@ FuzzySearch.extractSorted("goolge", ["google", "bing", "facebook", "linkedin", " [(string: google, score: 83, index: 0), (string: googleplus, score: 63, index: 5), (string: plexoogl, score: 43, index: 7)] ``` +#### Extract using any object +`extractOne` and related methods can receive `Collection` and produce `BoundExtractedResult` +```java +List foo = ...; +BoundExtractedResult match = FuzzySearch.extractOne("cowboys", foo, x -> x.toString()); +Foo matchFoo = match.getReferent(); +``` ## Credits - seatgeek