Comments (3)
Try $tnt->fuzziness(true);
instead of $tnt->fuzziness = true;
. The attribute fuzziness doesn't exist on the TNTSearch class.
...
$tnt->loadConfig($config);
$tnt->selectIndex(ENV_SEARCHINDEX);
$tnt->fuzziness(true);
$search = "Regenerative";
$results = $tnt->search($search, 10);
...
from tntsearch.
Try
$tnt->fuzziness(true);
instead of$tnt->fuzziness = true;
. The attribute fuzziness doesn't exist on the TNTSearch class.... $tnt->loadConfig($config); $tnt->selectIndex(ENV_SEARCHINDEX); $tnt->fuzziness(true); $search = "Regenerative"; $results = $tnt->search($search, 10); ...
@alaminfirdows using fuzziness as method solved my problem! Thanks a lot :-)
from tntsearch.
Hello!
I had the same issue, fuzzy search wasn't working because of "$tnt->fuzziness = true;", "fuzziness" was considered as an undefined property by my IDE
I tried "$tnt->fuzziness($data_to_search);" instead and now fuzzy search works.
I don't know if it's the right way to deal with this issue, but it's working...
from tntsearch.
Related Issues (20)
- Filesystem driver , score calculation -- fix proposal
- Update a geosearch index HOT 1
- Result not matched HOT 6
- Undefined index: docScores HOT 2
- 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.
- Scout Driver - Model update or save dont trigger tntsearch index update HOT 3
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.