Comments (8)
Hi @athlonUA, that's good question.
What first comes to my mind is using proper analyzers to tell elasticsearch how to process and store your data internally:
- https://www.elastic.co/blog/found-text-analysis-part-1
- https://tryolabs.com/blog/2015/02/25/elasticsearch-analyzers-or-how-i-learned-to-stop-worrying-and-love-custom-filters/
Are you using it for showing standard results or for auto-complete ?
from itemsapi.
@cigolpl you mean this relates only to elasticsearch configuration? I use it for auto-complete and generally to searching
from itemsapi.
@athlonUA I believe it could be configured also in ItemsAPI configuration. I will make same tests on my local machine.
What you want to do is pattern
searching ? I mean for:
j
it shows all results which containsj
i.ejeans
je
it shows all results which containsje
etc
or plural
searching:
- for
phone
andphones
it shows the same results ?
from itemsapi.
@cigolpl only pattern
searching
from itemsapi.
@athlonUA could you see if that works for you ?
(more details here: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_regular_expressions)
I believe it should works but I am afraid it can be slow.
from itemsapi.
@cigolpl as i correctly understood in the example above your_field_type
means the concrete field like name
or category
? Is it hard to implement this regular expression /*something*/
directly in api and to search the data through all the fields (like query
value)?
from itemsapi.
Hi @athlonUA, yes it works only for one specific field :(
from itemsapi.
By the way - I consider writing additional functionality for autocomplete / suggesting in ItemsAPI using
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html
I am making some research already based on nice examples and on experience with my websites http://baymard.com/blog/autocomplete-design.
I hope you could also benefit from that in the future if I could accomplish that
from itemsapi.
Related Issues (20)
- add query_string to "similar items"
- make possible to disable specific aggregation from search result HOT 1
- REST API endpoints HOT 2
- Is it possible to disable aggregation key in schema during request? HOT 14
- Sorting issue HOT 11
- throws error once aggregation ranges are empty (in generator)
- Make installation more intuitive HOT 1
- api keys
- Aggregation endpoint is not showing correct elements count HOT 1
- Improvement in new index name in reindex HOT 1
- Stop supporting non Elasticsearch field properties like display array
- Make field name analyzed in schema while generating project
- Elasticsearch 5.x HOT 5
- mysql support HOT 3
- Connect mysql table eample
- Start itemsapi docker HOT 2
- Documentation HOT 8
- AND vs OR HOT 2
- Multiple Indexes / Multitenancy HOT 2
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 itemsapi.