Comments (13)
Yes, it is planned for the future versions.
from tntsearch.
Well I think you've done a really great job so far.
Just needs so far:
- Updating for indexing instead of having to delete it and start over. #5
- Fuzzy Searching would make it 10 times better.
- You also might get allot more attention if you wanted to make a package for Laravel 5.
Thanks for your time in this project.
from tntsearch.
Ok cool! Ya fuzzy searching is ten times better for users when there trying to find something & they don't really know all the words. Do you have a Roadmap of the features for public viewing?
from tntsearch.
Currently not. The package is relatively new so we are trying to collect some feedback first and see what users need most
from tntsearch.
@nticaric Thanks for listening to my ideas! Have you thought about creating a trello board?
from tntsearch.
well..will be great
On Mon, May 16, 2016 at 8:50 PM, Christopher [email protected]
wrote:
@nticaric https://github.com/nticaric Thanks for listening to my ideas!
Have you thought about creating a trello board?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#9 (comment)
Shiva Acharjee
Software Engineer @ NETechno (p) Ltd
http://shivaacharjee.com
Facebook: http://facebook.com/billshiva
Twitter: @shivaacharjee
https://about.me/shivaacharjee
Peace be on you!
This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.
from tntsearch.
Yeah fuzzy searching would be awesome.
from tntsearch.
for fuzzy and scoring better use a lucene search engine.
like https://github.com/nqxcode/laravel-lucene-search
- phrase - phrase match (boolean, true by default)
- proximity - value of distance between words (unsigned integer)
- fuzzy - value of fuzzy (float, 0 ... 1)
- required - should match (boolean, true by default)
- prohibited - should not match (boolean, false by default)
from tntsearch.
@xenDE this package was created because Zend Lucene wasn't good enough :) BM25 matching algorithm is superior to the VSM (vector space model) which lucene uses for scoring. The package has also support for boolean search which is implemented in the way that it gives control to the user not to the developer. The fuzziness and proximity can be added by extending the search class but it affects performance, like it does to the package you recommended ;) The index can also be easily updated. Access to it is much faster because it uses sqlite extension which is written in C and you can't beat C ;)
from tntsearch.
@nticaric Is there any news or progress on the fuzzy search?
from tntsearch.
@dragonfire1119 Yes, the fuzzy search feature has been added in version v0.8.0
use TeamTNT\TNTSearch\TNTSearch;
$tnt = new TNTSearch;
$tnt->loadConfig($config);
$tnt->selectIndex("name.index");
$tnt->fuzziness = true;
//when the fuzziness flag is set to true the keyword juleit will return
//documents that match the word juliet, the default levenshtein distance is 2
$res = $tnt->search("juleit");
You can tweak it by changing the TNTSearch member variables
public $fuzzy_prefix_length = 2;
public $fuzzy_max_expansions = 50;
public $fuzzy_distance = 2 //represents the levenshtein distance;
In order to better understand how the fuzziness implementation works, here's a good read
from the elastic blog :)
https://www.elastic.co/blog/found-fuzzy-search
from tntsearch.
@nticaric Thanks for your time on the project. How would you set the fuzziness public variable when you use the Facade?
Think I figured it out? Is this the best way?
\TNTSearch::selectIndex("users");
app('tntsearch')->fuzziness = true;
$res = \TNTSearch::search('tom', 10);
from tntsearch.
@dragonfire1119 Haven't tried, but this should do the trick
TNTSearch::getFacadeRoot()->fuzziness = true;
from tntsearch.
Related Issues (20)
- Does it possible to reate index by array of data? HOT 4
- Dynamic properties used in "TeamTNT\TNTSearch\Indexer" HOT 3
- Depreciation : Using ${var} in strings is deprecated, use {$var} instead in PHP 8.2 HOT 1
- tntsearch Deprecated: Creation of dynamic property HOT 1
- Anyone know what this random SMS-Texts file is? HOT 2
- Diacritic-Insensitive Search Support (Czech characters) HOT 3
- Scout: Custom tokenizer indexing properly to allow dashes and periods, but searching on dashes does not work HOT 9
- Performance issues with large datasets HOT 6
- Class 'TeamTNT\TNTSearch\Engines\Exception' not found in 'vendor/teamtnt/tntsearch/src/Engines/EngineTrait.php' line 46 HOT 1
- Per-Model Fuzzy Search Configuration in Laravel Scout HOT 1
- [FEATURE] Support of PSR-16 adapter
- How to add MYSQL_ATTR_SSL_CA option? HOT 1
- $startpos adjustment may return minus value. HOT 1
- How to update index for which no index.
- Fuzziness / Fuzzy-Search not working HOT 3
- Scout Driver - Model update or save dont trigger tntsearch index update HOT 3
- new TNTGeoIndexer expects engine
- Why add 'return' in saveHitList function? HOT 3
- Inaccurate results when searching two or more keywords. HOT 7
- In-depth Instructions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tntsearch.