Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search definition creation in runtime #4092

Closed
leobispo opened this issue Nov 11, 2017 · 1 comment
Closed

Search definition creation in runtime #4092

leobispo opened this issue Nov 11, 2017 · 1 comment
Labels
Projects

Comments

@leobispo
Copy link

leobispo commented Nov 11, 2017

Hi all,

First of all thank you for this amazing platform. I have 2 questions about Search definition.

Search definition creation in runtime

Is there any API which I can use to create a search definition (sd) in runtime.

This is a requirement, because the documents that I will index are depending on the user input in my front end application.

If it is not possible, what is the best way for me to implement/workaround this feature.

How many search definitions can I have in a Vespa cluster?

Lets say that I am creating 100000 search definitions. Is this possible? What is the impact in terms of performance?

@bratseth
Copy link
Member

See the Stack Overflow answer.

Regarding "many search definitions can I have in a Vespa cluster":
Each search definition correspond to a separate instance of all the machinery and files needed to store and query a data type. 10k is definitely too many.

It sounds like you need a different solution. Either

  • create a generic search definition and maintain a mapping to its generic fields for each of your use-defined type.
  • create a generic search definition and mangle terms with the customer id to avoid cross-customer matches, or
  • add an indexable Map field type to Vespa such that you can add fields to it dynamically, see https://github.com/vespa-engine/vespa/blob/master/TODO.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Support
Awaiting triage
Development

No branches or pull requests

2 participants