Giter Club home page Giter Club logo

Comments (7)

parente avatar parente commented on June 2, 2024 1

Brain dumping ...

As a user, I usually want to enter free form queries in order to get back a listing of notebooks matched on filenames, titles, tags, authors, markdown, or even code. I expect these to be weighted in some manner, preferring filename hits over code hits, for example. I don't want to learn a query language to perform simple searches. In rarer cases, I'd like to formulate more complex queries like language=scala AND Dataset. A simple query language would suffice here.

The API could be lightweight such that the user's query text gets passed to the configured index as-is and the index implementation makes all the decisions about how to interpret it. The API could be more explicit, requiring the user / frontend to provide more information about the query, and simplyfing the task of the index in interpreting it.

In either case, if a query language is to be supported, then all index implementations have to be able to support its features and, in the lightweight API case, perform the parsing.

from commuter.

parente avatar parente commented on June 2, 2024

API for clients of commuter to perform searches? Or API to plug different search back ends into commuter?

from commuter.

rgbkrk avatar rgbkrk commented on June 2, 2024

API for frontends to query against.

I'm fully expecting us to write different search backends. Right now elasticsearch is just the easiest for us to deploy.

from commuter.

parente avatar parente commented on June 2, 2024

If commuter were to expose a search UI, I'm assuming it would go directly to the index for results. If another client wanted to implement search, why would it query commuter instead of going directly to the index?

Not trying to be difficult. Just trying to understand the use case.

from commuter.

rgbkrk avatar rgbkrk commented on June 2, 2024

I'd rather not leave elasticsearch open for DELETE at _all or for modification by users.

from commuter.

parente avatar parente commented on June 2, 2024

Sure. I understand that. I meant "other web apps" by "other clients". Like, if I were to implement my own web app, I'd have the backend talk directly to the search index and guard against deletions and whatever else I didn't want to expose directly to users.

So, correct me if I'm wrong, you're thinking of the case where the client cannot be trusted, say, a notebook tool with a search feature built-in.

from commuter.

rgbkrk avatar rgbkrk commented on June 2, 2024

Yeah the backend would still talk to elasticsearch directly.

Are you saying we'd effectively proxy _search?

from commuter.

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.