diff options
| author | krasimir <krasimir@chalmers.se> | 2015-12-20 14:04:52 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2015-12-20 14:04:52 +0000 |
| commit | bef9d8c5fce740fde65934b170cca33b121fde67 (patch) | |
| tree | 8a8c86569cd4ea329f3c5a5a9caefdcdf36211c3 /src/runtime/c/sg/sg.h | |
| parent | 0b9395fd7006592d0434503751a88ef95ab47603 (diff) | |
added a primitive full-text search index in libsg. This can be use for finding an abstract tree whose linearization matches given keywords
Diffstat (limited to 'src/runtime/c/sg/sg.h')
| -rw-r--r-- | src/runtime/c/sg/sg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/sg/sg.h b/src/runtime/c/sg/sg.h index 3bf0cb8c5..6ef57584d 100644 --- a/src/runtime/c/sg/sg.h +++ b/src/runtime/c/sg/sg.h @@ -30,6 +30,12 @@ sg_insert_expr(SgSG *sg, PgfExpr expr, GuExn* err); PgfExpr sg_get_expr(SgSG *sg, SgId key, GuPool* out_pool, GuExn* err); +void +sg_update_fts_index(SgSG* sg, PgfPGF* pgf, GuExn* err); + +GuSeq* +sg_query_linearization(SgSG *sg, GuString tok, GuPool* pool, GuExn* err); + typedef PgfExpr SgTriple[3]; |
