Giter VIP home page Giter VIP logo

Comments (8)

cigolpl avatar cigolpl commented on September 26, 2024

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:

Are you using it for showing standard results or for auto-complete ?

from itemsapi.

athlonUA avatar athlonUA commented on September 26, 2024

@cigolpl you mean this relates only to elasticsearch configuration? I use it for auto-complete and generally to searching

from itemsapi.

cigolpl avatar cigolpl commented on September 26, 2024

@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 contains j i.e jeans
  • je it shows all results which contains je etc

or plural searching:

  • for phone and phones it shows the same results ?

from itemsapi.

athlonUA avatar athlonUA commented on September 26, 2024

@cigolpl only pattern searching

from itemsapi.

cigolpl avatar cigolpl commented on September 26, 2024

@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.

athlonUA avatar athlonUA commented on September 26, 2024

@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.

cigolpl avatar cigolpl commented on September 26, 2024

Hi @athlonUA, yes it works only for one specific field :(

from itemsapi.

cigolpl avatar cigolpl commented on September 26, 2024

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)

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.