Comments (6)
from tntsearch.
Thanks for the reply.
I am using a simple dataset with 50000+ company names. I am only using a custom tokenizer.
from tntsearch.
from tntsearch.
Hi,
This is my tokenizer
`<?php
namespace Search;
use TeamTNT\TNTSearch\Support\AbstractTokenizer;
use TeamTNT\TNTSearch\Support\TokenizerInterface;
class Tokenizer extends AbstractTokenizer implements TokenizerInterface
{
static protected $pattern = '/[^\p{L}\-\p{N}]+/u';
public function tokenize($text, $stopwords = [])
{
if ($text === null) {
return [];
}
$text = mb_strtolower($text, 'UTF-8');
$text = str_replace(['-', '_', '~'], [' ', ' ', '-'], $text);
$text = strip_tags($text);
$split = preg_split($this->getPattern(), $text, -1, PREG_SPLIT_NO_EMPTY);
return array_diff($split, $stopwords);
}
}
`
My query is super simpel
$indexer->query('SELECT id,
nameFROM
companies');
from tntsearch.
I'm using this package with a result set of 1.5 million records. Indexing from scratch takes ~5 minutes.
from tntsearch.
Thats crazy...
There is something weird anyways.
Indexing 10.000 rows takes like 20 seconds on my server.
But when i index 100.000 rows with alike data (so not different form of data or length) it takes about 30 minutes.
Even updating the index is very slow instead of complete reindex.
Could it be something with the size of the index file?
from tntsearch.
Related Issues (20)
- Fuzzy not work
- Search boolean not operator
- In what programming language is it made? HOT 3
- Unable to search substring inside a string HOT 6
- Update and delete function for GeoIndexer crashes HOT 1
- The highlighter highlights itself
- 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
- 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
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.