Code Monkey home page Code Monkey logo

Comments (6)

stokic avatar stokic commented on May 22, 2024 1

Check how your data is saved in the database, and then in the index. If you are using some kind of text editor it's possible that it doesn't save "clean" letters but escapes them...

Since index is just a SQLite database you can peak at wordlist table and see what terms were actually indexed, let us know what you find there regarding umlauts ;)

from tntsearch.

TheoJL avatar TheoJL commented on May 22, 2024 1

Oh, I didn't know you could set the charset in the loadConfig object.
After setting 'charset' => 'utf8' everything works.
Thank you! :)

from tntsearch.

stokic avatar stokic commented on May 22, 2024

Hi,

you can set German stemmer before executing indexing query ie. like this:

$indexer = $tnt->createIndex('my.index');
$indexer->setLanguage('german');

note that on depending how you save your data in the database you may need this as well:

$indexer->decodeHtmlEntities();

Hope this helps and I think we should add this to the Readme so thanks for pointing it out :)

from tntsearch.

klausbiedermann avatar klausbiedermann commented on May 22, 2024

Hi Sasa,

now i get sometimes results for search terms. german umlauts or normal chars.

I create a new record. In the search i find the search term.
Next time i create an other record. In the search i don´t get the search term.

Same with updates.

Any suggestions on that?

Thank you for your help
with regards
Klaus

from tntsearch.

klausbiedermann avatar klausbiedermann commented on May 22, 2024

now i use tntsearch with scout. It works really fantastic.
https://github.com/teamtnt/laravel-scout-tntsearch-driver

Many thanks for this great work.

from tntsearch.

TheoJL avatar TheoJL commented on May 22, 2024

Just realised that I too have this problem.
I tried reindex with German stemmer, but it didn't seem to do anything unfortunately.
My language is actually Swedish, but we share some chars with German. So it seems that åäö doesn't get indexed.

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.