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

Support for document-summaries and struct datatypes #362

Closed
danclark382 opened this issue Jul 7, 2022 · 4 comments
Closed

Support for document-summaries and struct datatypes #362

danclark382 opened this issue Jul 7, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@danclark382
Copy link

Is there a way to create a Struct data type within a schema? I have an array that I’m trying to use as an imported field, but I can’t find any reference for the struct field.

Also is there any built-in support for creating document summaries?

@bratseth
Copy link
Member

bratseth commented Jul 8, 2022

Struct/array/importing

Are you asking about struct, array, or importing either from parents?

You can import arrays from parent documents just like other field types.
(You cannot refer to an array of parents, but I don't think you are asking about that.)

Document summaries

I assume you mean dynamic summary fields? Yes there is built-in support for that: https://docs.vespa.ai/en/reference/schema-reference.html#summary (see "dynamic").

You might also mean: Is it possible to select the fields to include in a summary, and have multiple such selections you can choose by query. For that, see https://docs.vespa.ai/en/reference/schema-reference.html#document-summary

@bratseth bratseth self-assigned this Jul 8, 2022
@bratseth bratseth added the question Further information is requested label Jul 8, 2022
@danclark382
Copy link
Author

For both the struct and the summary, is there a way to implement these in Pyvespa? The links you sent are the correct items I'm mentioning.

I'm trying to use Pyvespa to automate the configuration build of the Vespa application. If there isn't a way to create a struct in Pyvespa (like there is a Field within a schema), is there another automated process for building the configuration besides editing the files within the application directory?

Hope that clarifies the question a bit.

@bratseth
Copy link
Member

Yes, that makes it clear. @thigm85 can answer best about Pyvespa, but it is not a design goal of it to be functionally complete for defining production applications, it only provides what's necessary for data science.

You need to have a source of truth which specifies what the schema and application package should contain. I don't see why that should be in some other format than the native one provided by Vespa.

@danclark382
Copy link
Author

danclark382 commented Jul 12, 2022 via email

@johans1 johans1 closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants