blob: ea6b6a8ee3880a382f54244f4041541ec921b235 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.fastsearch;
import com.yahoo.search.schema.Schema;
/**
* Representation of a document database realizing a schema in a content cluster.
*
* @author geirst
*/
public class DocumentDatabase {
public static final String MATCH_PROPERTY = "match";
public static final String SEARCH_DOC_TYPE_KEY = "documentdb.searchdoctype";
private final Schema schema;
private final DocsumDefinitionSet docsumDefSet;
public DocumentDatabase(Schema schema) {
this.schema = schema;
this.docsumDefSet = new DocsumDefinitionSet(schema);
}
public Schema schema() { return schema; }
/** Returns the document summary model in this which knows how to convert serialized data to hit fields. */
public DocsumDefinitionSet getDocsumDefinitionSet() { return docsumDefSet; }
}
|