Uses of Class
com.yahoo.schema.parser.ParseException

Packages that use ParseException
  • Uses of ParseException in com.yahoo.schema

    Methods in com.yahoo.schema that throw ParseException
    Modifier and Type
    Method
    Description
    void
    ApplicationBuilder.addSchema(String schemaString)
    Adds a schema to this
    void
    ApplicationBuilder.addSchemaFile(String fileName)
    Adds a schema to this application.
    static Schema
    ApplicationBuilder.buildFromFile(String fileName)
    Convenience factory method to import and build a Schema object from a file.
    static Schema
    ApplicationBuilder.buildFromFile(String fileName, com.yahoo.config.application.api.DeployLogger deployLogger, RankProfileRegistry rankProfileRegistry, com.yahoo.search.query.profile.QueryProfileRegistry queryProfileRegistry)
    Convenience factory method to import and build a Schema from a file.
    static Schema
    ApplicationBuilder.buildFromFile(String fileName, RankProfileRegistry rankProfileRegistry, com.yahoo.search.query.profile.QueryProfileRegistry queryProfileRegistry)
    Convenience factory method to import and build a Schema object from a file.
    ApplicationBuilder.createFromDirectory(String dir, com.yahoo.config.application.api.FileRegistry fileRegistry, com.yahoo.config.application.api.DeployLogger logger, com.yahoo.config.model.api.ModelContext.Properties properties)
     
    ApplicationBuilder.createFromDirectory(String dir, com.yahoo.config.application.api.FileRegistry fileRegistry, com.yahoo.config.application.api.DeployLogger logger, com.yahoo.config.model.api.ModelContext.Properties properties, RankProfileRegistry rankProfileRegistry)
     
    ApplicationBuilder.createFromFile(String fileName)
    Convenience factory method to import and build a Schema object from a file.
    ApplicationBuilder.createFromFile(String fileName, com.yahoo.config.application.api.DeployLogger logger)
     
    ApplicationBuilder.createFromFiles(Collection<String> fileNames)
    Convenience factory methods to create a SearchBuilder from multiple SD files.
    ApplicationBuilder.createFromString(String sd)
    Convenience factory method to import and build a Schema object from a string.
    ApplicationBuilder.createFromString(String sd, com.yahoo.config.application.api.DeployLogger logger)
     
    ApplicationBuilder.createFromStrings(com.yahoo.config.application.api.DeployLogger logger, String... schemas)
     
  • Uses of ParseException in com.yahoo.schema.fieldoperation

    Modifier and Type
    Method
    Description
    IndexingOperation.fromStream(SimpleCharStream input, boolean multiLine)
    Creates an indexing operation which will use the simple linguistics implementation suitable for testing
    IndexingOperation.fromStream(SimpleCharStream input, boolean multiLine, com.yahoo.language.Linguistics linguistics, Map<String,com.yahoo.language.process.Embedder> embedders)
     
  • Uses of ParseException in com.yahoo.schema.parser

    Modifier and Type
    Method
    Description
    SchemaParser.generateParseException()
    Generate ParseException.
    Modifier and Type
    Method
    Description
    void
    IntermediateCollection.addRankProfileFile(String schemaName, com.yahoo.io.reader.NamedReader reader)
    Parses a rank profile from the given reader and add to the schema identified by name.
    IntermediateCollection.addSchemaFromString(String input)
     
    final void
    SchemaParser.alias(com.yahoo.schema.parser.ParsedField field)
     
    final void
    SchemaParser.annotation(ParsedDocument document)
    Consumes an annotation block from within a document element
    final void
    SchemaParser.annotationBody(com.yahoo.schema.parser.ParsedAnnotation type)
    Consumes a single element of an annotation body block.
    final void
    SchemaParser.annotationOutside(ParsedSchema schema)
    This rule consumes a annotation block from within a schema element.
    final com.yahoo.schema.parser.ParsedType
    SchemaParser.annotationRefDataType()
     
    final void
    SchemaParser.approximateThreshold(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes an approximate-threshold statement for a rank profile.
    final void
    SchemaParser.arrayTensorValues(List<Double> values)
    Tensor array values.
    final void
    SchemaParser.attribute(com.yahoo.schema.parser.ParsedField field)
    This rule consumes an attribute statement of a field element.
    final void
    SchemaParser.attributeSetting(com.yahoo.schema.parser.ParsedAttribute attribute)
    This rule consumes a single attribute setting statement of an attribute element.
    final void
    SchemaParser.attributeSorting(com.yahoo.schema.parser.ParsedAttribute attribute)
     
    final void
    SchemaParser.bolding(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a bolding statement of a field element.
    final Boolean
    SchemaParser.bool()
    A boolean value.
    final void
    SchemaParser.constant(ParsedSchema schema, com.yahoo.schema.parser.ParsedRankProfile profile)
     
    final com.yahoo.searchlib.rankingexpression.Reference
    SchemaParser.constantName()
    Returns the reference "constant(name)" for both "constant(name)" and "name".
    final void
    SchemaParser.constants(ParsedSchema schema, com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a set of constants available in ranking expressions in the enclosing profile.
    final void
    SchemaParser.constantTensor(com.yahoo.schema.parser.ParsedRankProfile profile, com.yahoo.searchlib.rankingexpression.Reference name)
     
    final String
    SchemaParser.constantTensorErrorMessage(String rankProfileName, com.yahoo.searchlib.rankingexpression.Reference name)
     
    final void
    SchemaParser.constantValue(com.yahoo.schema.parser.ParsedRankProfile profile, com.yahoo.searchlib.rankingexpression.Reference name)
     
    final com.yahoo.schema.parser.ParsedType
    SchemaParser.dataType()
    This rule consumes a data type block from within a field element.
    final void
    SchemaParser.dictionary(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a dictionary statement of a field element.
    final void
    SchemaParser.dictionarySetting(com.yahoo.schema.parser.ParsedField field)
     
    final void
    This rule consumes a diversity block of a rank profile.
    final void
     
    final void
    SchemaParser.document(ParsedSchema schema)
    Consumes a document element.
    final void
    SchemaParser.documentBody(ParsedDocument document)
    Consumes a document body block
    final void
    SchemaParser.documentSummary(ParsedSchema schema)
    Consumes a document-summary block from within a schema block.
    final void
    SchemaParser.documentSummaryItem(com.yahoo.schema.parser.ParsedDocumentSummary summary)
    Consumes a single document-summary item.
    final void
    SchemaParser.exactTerminator(ParsedMatchSettings matchInfo)
     
    final String
    SchemaParser.expression()
    This rule consumes an expression token and returns its image.
    final com.yahoo.schema.parser.ParsedField
    SchemaParser.field()
    Consumes a field block
    final void
    SchemaParser.fieldBody(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a single element of a field body block.
    final void
    SchemaParser.fieldInsideDoc(ParsedDocument document)
    Consumes a field block from within a document element.
    final void
    SchemaParser.fieldOutsideDoc(ParsedSchema schema)
    Consumes a field block from outside a document element.
    final void
    SchemaParser.fieldRankFilter(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a rank filter statement of a rank profile.
    final void
    SchemaParser.fieldRankType(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a rank-type statement of a rank profile.
    final void
    SchemaParser.fieldSet(ParsedSchema schema)
    Consumes a fieldset block
    final void
    SchemaParser.fieldSorting(com.yahoo.schema.parser.ParsedField field)
     
    final void
    SchemaParser.fieldStemming(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a stemming block of a field element.
    final void
    SchemaParser.fieldWeight(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a field-weight statement of a rank profile.
    final String
    SchemaParser.fileItem()
     
    final void
    SchemaParser.firstPhase(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes the first-phase block of a rank profile.
    final void
    SchemaParser.firstPhaseItem(com.yahoo.schema.parser.ParsedRankProfile profile)
     
    final double
    SchemaParser.floatValue()
    Consumes a floating-point token and returns its numeric value.
    final void
    SchemaParser.function(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a function statement of a rank-profile.
    final void
    SchemaParser.globalPhase(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes the global-phase block of a rank profile.
    final void
    SchemaParser.globalPhaseItem(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a statement for a global-phase block.
    final void
    SchemaParser.gramSize(ParsedMatchSettings matchInfo)
     
    final void
    SchemaParser.hnswIndex(com.yahoo.schema.parser.ParsedIndex index)
     
    final void
     
    final void
    SchemaParser.id(com.yahoo.schema.parser.ParsedField field)
    Consumes an id statement of a field body block.
    final String
    SchemaParser.identifier()
    Consumes an identifier.
    final String
    SchemaParser.identifierWithDash()
     
    final void
    SchemaParser.ignoreRankFeatures(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a ignore-default-rank-features statement for a rank profile.
    final void
    SchemaParser.importField(ParsedSchema schema)
     
    final void
    SchemaParser.indexBody(com.yahoo.schema.parser.ParsedIndex index)
    Consumes a single index statement for an index block.
    final void
    SchemaParser.indexedTensorBlockValues(com.yahoo.tensor.TensorAddress mappedAddress, com.yahoo.tensor.Tensor.Builder builder)
     
    final void
    SchemaParser.indexedTensorValue(List<Double> values)
     
    final void
    SchemaParser.indexedTensorValues(com.yahoo.tensor.Tensor.Builder builder)
     
    final void
    SchemaParser.indexing(com.yahoo.schema.parser.ParsedField field)
    This rule consumes an indexing block of a field element.
    final void
    SchemaParser.indexingOperation(com.yahoo.schema.parser.ParsedField field, boolean multiLine)
    This rule consumes an IL script block.
    final void
    SchemaParser.indexInsideField(com.yahoo.schema.parser.ParsedField field)
    Consumes an index block for a field element.
    final void
    SchemaParser.indexOutsideDoc(ParsedSchema schema)
    Consumes an index block in a schema element.
    final void
    SchemaParser.inheritsAnnotation(com.yahoo.schema.parser.ParsedAnnotation annotation)
     
    final void
    SchemaParser.inheritsDocument(ParsedDocument document)
    Consumes a document inheritance statement.
    final void
    SchemaParser.inheritsDocumentSummary(com.yahoo.schema.parser.ParsedDocumentSummary documentSummary)
    This rule consumes an inherits statement of a document summary.
    final void
    SchemaParser.inheritsRankProfile(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes an inherits statement of a rank-profile.
    final void
    SchemaParser.inheritsStruct(ParsedStruct struct)
    Consumes struct inheritance
    final boolean
    SchemaParser.inline()
     
    final void
    SchemaParser.input(com.yahoo.schema.parser.ParsedRankProfile profile)
     
    final com.yahoo.searchlib.rankingexpression.Reference
    SchemaParser.inputName()
    Returns the reference "query(name)" for both "query(name)" and "name".
    final void
    SchemaParser.inputs(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes an inputs block of a rank profile.
    final int
    SchemaParser.integer()
    Consumes an integer token and returns its numeric value.
    final void
    SchemaParser.lbrace()
    Consumes an opening brace with leading and trailing newline tokens.
    final long
    SchemaParser.longValue()
    Consumes a long or integer token and returns its numeric value.
    final com.yahoo.schema.parser.ParsedType
    SchemaParser.mapDataType()
     
    final void
    SchemaParser.mappedTensorBlock(com.yahoo.tensor.Tensor.Builder builder)
     
    final void
    SchemaParser.mappedTensorCellValue(com.yahoo.tensor.TensorAddress address, com.yahoo.tensor.Tensor.Builder builder)
     
    final void
    SchemaParser.mappedTensorValue(com.yahoo.tensor.Tensor.Builder builder)
    A mapped or mixed tensor value.
    final void
    SchemaParser.matchFeatures(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a match-features block of a rank profile.
    final void
    SchemaParser.matchItem(ParsedMatchSettings matchInfo)
    This rule consumes a single match item for a match block.
    final void
    SchemaParser.matchPhase(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a match-phase block of a rank profile.
    final void
     
    final void
    SchemaParser.matchSettings(ParsedMatchSettings matchInfo)
     
    final void
    SchemaParser.matchSize(ParsedMatchSettings matchInfo)
     
    final void
    SchemaParser.matchType(ParsedMatchSettings matchInfo)
     
    final void
    SchemaParser.minHitsPerThread(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a min-hits-per-thread statement for a rank profile.
    final void
    SchemaParser.mutate(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes an mutate statement of a rank-profile.
    final String
    SchemaParser.mutate_expr()
     
    final void
    SchemaParser.mutate_operation(com.yahoo.schema.parser.ParsedRankProfile profile)
     
    SchemaParser.namedDocument()
    Consumes a document element, explicitly named
    final void
    SchemaParser.normalizing(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a normalizing statement of a field element.
    final Number
    SchemaParser.number()
     
    final void
    SchemaParser.numSearchPartitions(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a num-search-partitions statement for a rank profile.
    final void
    SchemaParser.numThreadsPerSearch(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a num-threads-per-search statement for a rank profile.
    final OnnxModel
    SchemaParser.onnxModel()
    Consumes an onnx-model block.
    final void
    SchemaParser.onnxModelInProfile(com.yahoo.schema.parser.ParsedRankProfile profile)
     
    final void
    SchemaParser.onnxModelInSchema(ParsedSchema schema)
     
    final void
    SchemaParser.onnxModelItem(OnnxModel onnxModel)
    Consumes an onnx-model block.
    final void
    SchemaParser.postFilterThreshold(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a post-filter-threshold statement for a rank profile.
    final void
    SchemaParser.queryCommand(com.yahoo.schema.parser.ParsedField field)
     
    final String
    SchemaParser.quotedString()
    Consumes a quoted string token and returns the token image minus the quotes.
    final void
    SchemaParser.rank(com.yahoo.schema.parser.ParsedField field)
    Consumes a rank statement of a field element.
    final void
    SchemaParser.rankFeatures(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a rank-features block of a rank profile
    final void
    SchemaParser.rankingConstant(ParsedSchema schema)
    Consumes a constant block of a schema element.
    final String
     
    final void
    SchemaParser.rankProfile(ParsedSchema schema)
    Consumes a rank-profile block of a schema element.
    final void
    SchemaParser.rankProfileItem(ParsedSchema schema, com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a single statement for a rank-profile block.
    final void
    SchemaParser.rankProperties(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a rank-properties block of a rank profile.
    final void
    SchemaParser.rankProperty(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a single rank property pair for a rank profile.
    final String
    SchemaParser.rankPropertyItem()
    Consumes a single rank property for a rank-properties block.
    final void
    SchemaParser.rankSetting(com.yahoo.schema.parser.ParsedField field)
    Consumes a single rank setting of a rank statement.
    final void
    SchemaParser.rankType(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a rank-type statement of a field element.
    final void
    SchemaParser.rawAsBase64(ParsedSchema schema)
     
    final com.yahoo.schema.parser.ParsedType
    SchemaParser.referenceType()
     
    SchemaParser.rootDocument()
    Consumes a schema definition that contains only documents to be used for inheritance, etc.
    SchemaParser.rootDocumentItem(ParsedSchema schema)
    Consumes a single item from within a root document node.
    SchemaParser.rootSchema()
    This rule consumes a proper schema block.
    final void
    SchemaParser.rootSchemaItem(ParsedSchema schema)
    Consumes an element of a schema block.
    SchemaParser.schema()
    The rule consumes any schema and returns the corresponding object.
    final void
    SchemaParser.searchStemming(ParsedSchema schema)
    This rule consumes a stemming statement for a schema element.
    final void
    SchemaParser.secondPhase(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes the second-phase block of a rank profile.
    final void
    SchemaParser.secondPhaseItem(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a statement for a second-phase block.
    final void
    SchemaParser.sorting(com.yahoo.schema.parser.ParsedSorting sort)
     
    final void
    SchemaParser.sortingSetting(com.yahoo.schema.parser.ParsedSorting sorting)
     
    final void
    SchemaParser.strict(com.yahoo.schema.parser.ParsedRankProfile profile)
     
    final String
    SchemaParser.string()
    Consumes a string token and returns the token image.
    SchemaParser.structDefinition()
    This rule consumes a struct declaration block
    final void
    SchemaParser.structField(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a struct subfield from a document field body.
    final void
    SchemaParser.structFieldBody(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a single element of a struct subfield body block.
    final void
    SchemaParser.structFieldDefinition(ParsedStruct struct)
    This rule consumes a field block of a struct body.
    final void
    SchemaParser.structInside(ParsedDocument document)
    This rule consumes a struct block from within a document element.
    final void
    SchemaParser.structOutside(ParsedSchema schema)
    This rule consumes a struct block from within a schema element.
    final void
    SchemaParser.summaryBolding(com.yahoo.schema.parser.ParsedSummaryField field)
    This rule consumes a bolding statement for a summary field element.
    final void
    SchemaParser.summaryDestinationList(com.yahoo.schema.parser.ParsedSummaryField field)
    This rule consumes a destination-list statement for a summary field element.
    final void
    SchemaParser.summaryFeatures(com.yahoo.schema.parser.ParsedRankProfile profile)
    Consumes a summary-features block of a rank profile.
    final void
    SchemaParser.summaryInDocument(com.yahoo.schema.parser.ParsedDocumentSummary docsum)
    This rule consumes a summary statement defined inside a document-summary block.
    final void
    SchemaParser.summaryInField(com.yahoo.schema.parser.ParsedField field)
    The rule consumes a summary statement defined inside a field.
    final void
    SchemaParser.summaryInFieldLong(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a multi-line summary field.
    final void
    SchemaParser.summaryInFieldShort(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a single-line summary field.
    final void
    SchemaParser.summaryItem(com.yahoo.schema.parser.ParsedSummaryField field)
    This rule consumes an item of a summary field block.
    final void
    SchemaParser.summarySourceList(com.yahoo.schema.parser.ParsedSummaryField field)
    This rule consumes a source-list statement for a summary field element.
    final void
    SchemaParser.summaryTo(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a summary-to statement of a field element.
    final void
    SchemaParser.summaryTransform(com.yahoo.schema.parser.ParsedSummaryField field)
    This rule consumes a transform statement for a summary field element.
    final void
    SchemaParser.targetHitsMaxAdjustmentFactor(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a target-hits-max-adjustment-factor statement for a rank profile.
    final com.yahoo.tensor.TensorAddress
    SchemaParser.tensorAddress(com.yahoo.tensor.TensorType type)
     
    final void
    SchemaParser.tensorAddressElement(com.yahoo.tensor.TensorAddress.Builder builder)
     
    final String
    SchemaParser.tensorAddressLabel()
     
    final double
    SchemaParser.tensorCellValue()
     
    final com.yahoo.tensor.TensorType
    SchemaParser.tensorType(String errorMessage)
     
    final com.yahoo.tensor.TensorType
    SchemaParser.tensorTypeWithPrefix(String errorMessage)
     
    final com.yahoo.tensor.Tensor
    SchemaParser.tensorValue(com.yahoo.tensor.TensorType type)
    Parses a tensor written in a tensor literal form, https://docs.vespa.ai/en/reference/tensor.html#tensor-literal-form
    final String
    Undocumented syntax for supplying a tensor constant value by a string prefixed by "value"
    final void
    SchemaParser.termwiseLimit(com.yahoo.schema.parser.ParsedRankProfile profile)
    This rule consumes a termwise-limit statement for a rank profile.
    final String
    SchemaParser.uriItem()
     
    final com.yahoo.tensor.TensorType
    SchemaParser.valueType(com.yahoo.searchlib.rankingexpression.Reference reference)
     
    final void
    SchemaParser.weight(com.yahoo.schema.parser.ParsedField field)
    This rule consumes a weight statement of a field element.
    final void
    SchemaParser.weightedset(com.yahoo.schema.parser.ParsedType fieldType)
    This rule consumes a weighted set statement of a field element.
    final void
    SchemaParser.weightedsetBody(com.yahoo.schema.parser.ParsedType type)
    This rule consumes one body item of a weighted set block.