Comments (9)
I am evaluating this search engine for a open science project... is there any estimated time for field weighting?
from tntsearch.
In order to achieve this you could do something called query expansion. Each query that comes in,
would be extended with a keyword that matches your result ie. We use this on the demo page.
class QueryExpansion
{
public static $query = [
'house' => 'house hugh',
'friends' => 'friends aniston',
'game of' => 'game of thrones',
'game' => 'game of thrones',
'breaking' => 'breaking bad',
'walker' => 'walker texas',
'nanny' => 'nanny fran',
'how' => 'how i',
'the big bang' => 'the big bang theory',
'the big' => 'the big bang theory',
'malcolm' => 'malcolm in the middle',
'two and a half' => 'two and a half men',
'two and a' => 'two and a half men',
'two and' => 'two and a half men',
];
public static function expand($query)
{
$query = trim($query);
if (isset(self::$query[$query])) {
return self::$query[$query];
}
return $query;
}
}
from tntsearch.
In the next versions of the package we plan to add field weighting
from tntsearch.
Thanks for a quick reply! Glad to hear that field weighting is planned. ๐ Till then I'll just implement some workaround. Thanks.
from tntsearch.
@nticaric Sorry to resurrect an old thread, but are there still plans to add field weighting?
from tntsearch.
Yes, there are plans, however this is a side project so we're only working on it in our spare time.
from tntsearch.
still busy i guess?
from tntsearch.
any news about field weighting? I would love to see this feature also
from tntsearch.
This is an old issue but I don't think it should be closed, has this ever been implemented?
from tntsearch.
Related Issues (20)
- 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.
- Fuzziness / Fuzzy-Search not working HOT 3
- Scout Driver - Model update or save dont trigger tntsearch index update HOT 3
- new TNTGeoIndexer expects engine
- Why add 'return' in saveHitList function? HOT 3
- Inaccurate results when searching two or more keywords. HOT 7
- In-depth Instructions HOT 1
- CLI re-index output is confusing
- How search with mysql and insensitive accents where 'a' = 'รก'
- How to perform a Boolean AND search with TNTSearch? 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.