Home Reference Source
import {IndexQuery} from 'sajari/src/sajari.js'
public class | source

IndexQuery

Class representing a IndexQuery

Constructor Summary

Public Constructor
public

Creates a IndexQuery Object.

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

body(bodies: Body[])

Sets the body of a query.

public

fieldBoosts(boosts: FieldBoost[])

Sets a list of FieldBoost for the IndexQuery.

public

Sets a list of InstanceBoost for the IndexQuery.

Public Constructors

public constructor(): IndexQuery source

Creates a IndexQuery Object.

Return:

IndexQuery

IndexQuery Object.

Public Members

public field_boosts: * source

public instance_boosts: * source

Public Methods

public body(bodies: Body[]) source

Sets the body of a query. Body is a list of weighted free-text.

Params:

NameTypeAttributeDescription
bodies Body[]

A list of body objects

public fieldBoosts(boosts: FieldBoost[]) source

Sets a list of FieldBoost for the IndexQuery.

Params:

NameTypeAttributeDescription
boosts FieldBoost[]

The FieldBoosts to be applied to the IndexQuery.

public instanceBoosts(boosts: InstanceBoost[]) source

Sets a list of InstanceBoost for the IndexQuery.

Params:

NameTypeAttributeDescription
boosts InstanceBoost[]

The InstanceBoosts to be applied to the IndexQuery.