Giter Club home page Giter Club logo

Comments (13)

nticaric avatar nticaric commented on May 18, 2024 8

Yes, it is planned for the future versions.

from tntsearch.

dragonfire1119 avatar dragonfire1119 commented on May 18, 2024 2

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.

dragonfire1119 avatar dragonfire1119 commented on May 18, 2024

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.

nticaric avatar nticaric commented on May 18, 2024

Currently not. The package is relatively new so we are trying to collect some feedback first and see what users need most

from tntsearch.

dragonfire1119 avatar dragonfire1119 commented on May 18, 2024

@nticaric Thanks for listening to my ideas! Have you thought about creating a trello board?

from tntsearch.

shivaacharjee avatar shivaacharjee commented on May 18, 2024

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.

jgb-solutions avatar jgb-solutions commented on May 18, 2024

Yeah fuzzy searching would be awesome.

from tntsearch.

xenDE avatar xenDE commented on May 18, 2024

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.

nticaric avatar nticaric commented on May 18, 2024

@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.

dragonfire1119 avatar dragonfire1119 commented on May 18, 2024

@nticaric Is there any news or progress on the fuzzy search?

from tntsearch.

nticaric avatar nticaric commented on May 18, 2024

@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.

dragonfire1119 avatar dragonfire1119 commented on May 18, 2024

@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.

nticaric avatar nticaric commented on May 18, 2024

@dragonfire1119 Haven't tried, but this should do the trick

TNTSearch::getFacadeRoot()->fuzziness = true;

from tntsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.