Code Monkey home page Code Monkey logo

Comments (7)

micheleriva avatar micheleriva commented on May 18, 2024 2

Thank you @aaronhuggins ,
that looks like a bug. We're on it

from orama.

micheleriva avatar micheleriva commented on May 18, 2024 1

@stearm pushing a commit right now 😄

from orama.

stearm avatar stearm commented on May 18, 2024

@micheleriva In this case it would be necessary to decide whether to override the id that the engine inserts or keep them both and understand how to manage them. Am I right? Do you have something in mind?

from orama.

micheleriva avatar micheleriva commented on May 18, 2024

Personally, I would discourage allowing users to define their own IDs. I think that trying to override the id should throw an error.

from orama.

stearm avatar stearm commented on May 18, 2024

Personally, I would discourage allowing users to define their own IDs. I think that trying to override the id should throw an error.

Yes totally, it is prone to errors as Lyra relies on the id internally. If you agree, I can take charge of this.

from orama.

micheleriva avatar micheleriva commented on May 18, 2024

@aaronhuggins to be released in v0.0.6

from orama.

mateonunez avatar mateonunez commented on May 18, 2024

I did the same search but using properties:

const searchResult = search(db, {
	term: 'if',
	properties: ['quote']
});

Output:

{
  elapsed: 136800n,
  hits: [
    {
      id: '2.0',
      quote: 'If you really look closely, most overnight successes took a long time.',
      author: 'Steve Jobs',
      what: '',
      who: ''
    },
    {
      id: '3.0',
      quote: 'If you are not willing to risk the usual, you will have to settle for the ordinary.',
      author: 'Jim Rohn',
      what: '',
      who: ''
    }
  ],
  count: 2
}

from orama.

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.