Documentation ¶
Index ¶
- Constants
- func ClearSession(sessionID string)
- func LibInit(directive ...string)
- func SetKB(k float64, b float64)
- type FieldEntry
- type JPCId
- type StorageKind
- type TBuilder
- func (tb *TBuilder) AddDateField(name string, fieldType StorageKind, stored bool, indexed bool, fast bool) (int, error)
- func (tb *TBuilder) AddF64Field(name string, fieldType StorageKind, stored bool, indexed bool, fast bool) (int, error)
- func (tb *TBuilder) AddI64Field(name string, fieldType StorageKind, stored bool, indexed bool, fast bool) (int, error)
- func (tb *TBuilder) AddJsonField(name string, fieldType StorageKind, stored bool, fast bool, tokenizer string, ...) (int, error)
- func (tb *TBuilder) AddTextField(name string, fieldType StorageKind, stored bool, fast bool, tokenizer string, ...) (int, error)
- func (tb *TBuilder) AddU64Field(name string, fieldType StorageKind, stored bool, indexed bool, fast bool) (int, error)
- func (tb *TBuilder) Build() (*TDocument, error)
- func (tb *TBuilder) CreateIndex(memsize ...uint32) (*TIndex, error)
- type TDocument
- func (td *TDocument) AddInt(field int, value int64, doc_id uint) (int, error)
- func (td *TDocument) AddJson(field int, value map[string]interface{}, doc_id uint) (int, error)
- func (td *TDocument) AddText(field int, value string, doc_id uint) (int, error)
- func (td *TDocument) AddUInt(field int, value uint64, doc_id uint) (int, error)
- func (td *TDocument) Create() (uint, error)
- func (td *TDocument) CreateIndex() (*TIndex, error)
- type TIndex
- type TIndexReader
- type TIndexWriter
- type TQueryParser
- type TSchema
- type TSearcher
- func (s *TSearcher) Docset(scoring bool, topLimit uint64, offset uint64) (string, error)
- func (s *TSearcher) FuzzySearch(topLimit ...uint64) (string, error)
- func (s *TSearcher) GetDocument(explain bool, score float32, docId uint32, segOrd uint32, ...) (string, error)
- func (s *TSearcher) Search(explain bool, topLimit uint64, offset uint64, ordered bool, ...) (string, error)
- func (s *TSearcher) SearchRaw() (string, error)
Constants ¶
View Source
const NOSNIPPET = -1
Variables ¶
This section is empty.
Functions ¶
func ClearSession ¶
func ClearSession(sessionID string)
Types ¶
type FieldEntry ¶
type JPCId ¶
type JPCId struct { TempDir string // contains filtered or unexported fields }
The ccomsBuf is a raw byte buffer for tantivy-jpc to send results. A single mutex guards its use.
type StorageKind ¶
type StorageKind uint
const ( STRING StorageKind = 1 TEXT StorageKind = 2 INT StorageKind = 3 UINT StorageKind = 4 JSON StorageKind = 5 )
type TBuilder ¶
type TBuilder struct {
*JPCId
}
func NewBuilder ¶
func (*TBuilder) AddDateField ¶
func (*TBuilder) AddF64Field ¶
func (*TBuilder) AddI64Field ¶
func (*TBuilder) AddJsonField ¶
func (*TBuilder) AddTextField ¶
func (*TBuilder) AddU64Field ¶
type TDocument ¶
type TDocument struct { *JPCId // contains filtered or unexported fields }
func (*TDocument) CreateIndex ¶
type TIndex ¶
type TIndex struct {
*JPCId
}
func (*TIndex) CreateIndexWriter ¶
func (idx *TIndex) CreateIndexWriter() (*TIndexWriter, error)
func (*TIndex) ReaderBuilder ¶
func (idx *TIndex) ReaderBuilder() (*TIndexReader, error)
type TIndexReader ¶
type TIndexReader struct {
*TIndex
}
func (*TIndexReader) Searcher ¶
func (idr *TIndexReader) Searcher() (*TQueryParser, error)
type TIndexWriter ¶
type TIndexWriter struct {
*TIndex
}
func (*TIndexWriter) AddDocument ¶
func (idw *TIndexWriter) AddDocument(docid uint) (uint, error)
func (*TIndexWriter) Commit ¶
func (idw *TIndexWriter) Commit() (uint64, error)
func (*TIndexWriter) DeleteTerm ¶
func (idw *TIndexWriter) DeleteTerm(field, term interface{}) (uint, error)
type TQueryParser ¶
type TQueryParser struct {
*TIndex
}
func (*TQueryParser) ParseFuzzyQuery ¶
func (qp *TQueryParser) ParseFuzzyQuery(field, term string) (*TSearcher, error)
func (*TQueryParser) ParseQuery ¶
func (qp *TQueryParser) ParseQuery(query string) (*TSearcher, error)
type TSchema ¶
type TSchema struct {
*JPCId
}
func (*TSchema) GetFieldEntry ¶
func (idr *TSchema) GetFieldEntry(fieldName string) (*FieldEntry, error)
type TSearcher ¶
type TSearcher struct {
*TQueryParser
}
func (*TSearcher) GetDocument ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
packaged
|
|
include
See https://github.com/golang/go/issues/26366.
|
See https://github.com/golang/go/issues/26366. |
lib
See https://github.com/golang/go/issues/26366.
|
See https://github.com/golang/go/issues/26366. |
lib/darwin-aarch64
See https://github.com/golang/go/issues/26366.
|
See https://github.com/golang/go/issues/26366. |
lib/darwin-amd64
See https://github.com/golang/go/issues/26366.
|
See https://github.com/golang/go/issues/26366. |
Click to show internal directories.
Click to hide internal directories.