-
Notifications
You must be signed in to change notification settings - Fork 31
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
Comments
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. 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 |
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. |
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. |
That makes sense…thanks for the clarification!
…On Tue, Jul 12, 2022 at 12:38 AM Jon Bratseth ***@***.***> wrote:
Yes, that makes it clear. @thigm85 <https://github.com/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.
—
Reply to this email directly, view it on GitHub
<#362 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDCOAORUE3VZM7ACAUTAPDVTUOGTANCNFSM527BXLEQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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?
The text was updated successfully, but these errors were encountered: