GithubHelp home page GithubHelp logo

Comments (5)

barryhunter avatar barryhunter commented on July 25, 2024 1

How do you run a generic full-text 'extended query'?

Wonder about

"query": {
    "match": { "_all": "one (two | three) \"four five size\"/2" }
}

But about

By default keywords are combined using the OR operator.

which seems to suggest its a simple 'bag of words' (kinda like historic SPH_MATCH_ANY) - even with AND would give unexpected results.

Or should just use /search or /sql if want general extended-syntax queries?

from manticoresearch.

tomatolog avatar tomatolog commented on July 25, 2024

only /search or /sql endpoints Sphinx compatible and we also think to change reply interface for them. Any suggestions are welcome.

from manticoresearch.

barryhunter avatar barryhunter commented on July 25, 2024

ok :) I suppose no benefit to migrate to /json/search, if don't want the 'alternative' query format it offers. No harm in using original /search//sql for queries, and just using /json/insert etc to maintain the Real-time Index.

Dont see what could be improved really with the reply format from /search//sql - seems simple and fine (although of course well familiar with sphinx!) - the only issue seems to be no support for multi query reply (including FACET)

from manticoresearch.

puzrin avatar puzrin commented on July 25, 2024
  1. Bulks

Note that the bulk operation stops at the first query that results in an error.

On bulk inserts such behaviour may be not desired (silent fail & continue preferable). Result could be an array with statuses for each operation.

Right now our workaround in sql is use replace instead of insert - because replace does not fails on dupes.

  1. Note for node.js clients and so on

JS has limitation for integer size - 56 bits max. While docid is 64 bits. I don't know if this can become a real problem, but worth to keep in mind.

from manticoresearch.

stale avatar stale commented on July 25, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to re-open the issue in case it becomes actual.

from manticoresearch.

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.