loupe-php / loupe

A full text search engine with tokenization, stemming, typo tolerance, filters and geo support based on only PHP and SQLite.
MIT License
271 stars 8 forks source link

General error: 1 no such function: LN #38

Closed AndiLeni closed 1 year ago

AndiLeni commented 1 year ago

I get a General error: 1 no such function: LN error message when I try to add documents to the index. However, SQLite3::version() reports the sqlite version 3.36.0.

Toflar commented 1 year ago

Then you compiled sqlite using the --disable-math flag. By default it should be enabled. But we should still fall back to the polyfill in this case.

AndiLeni commented 1 year ago

I am using php 8.1 on my windows 10 system. The php runtime is from https://windows.php.net/ if this helps.

Toflar commented 1 year ago

Can you check if https://github.com/loupe-php/loupe/pull/40 fixes your issue?

AndiLeni commented 1 year ago

@Toflar Yes, this seems to work :-)

Toflar commented 1 year ago

Released as 0.3.1.