Giter Site home page Giter Site logo

groonga-function-tag-search's Introduction

tag_search Groonga function

  • tag_search(index, "query_1"[,.., "query_n", {op: "OR", mode: "EXACT or PREFIX", threshold: 1000])

いい感じにタグ検索を行うためのセレクタ関数。 thresholdでシーケンシャルサーチを行うか行わないか調整できる(予定)。

query: 複数指定可能。queryの末尾が*で終わる場合は、そのクエリのみprefixサーチとなる。
op: queryを複数指定した場合の論理演算子AND|OR。デフォルトOR。ORの場合、in_values相当(いずれかを含む)になる。
mode: 全体のクエリに設定するモード EXACT: 完全一致 PREFIX: 前方一致 デフォルトEXACT
threshold: シーケンシャルサーチを行う閾値。threshold以下の場合にのみシーケンシャルサーチになる(予定。本体パッチで運用しているため、いまのところ未実装)。

Install

Install libgroonga-dev.

Build this function.

% sh autogen.sh
% ./configure
% make
% sudo make install

Usage

Register functions/tag_search:

% groonga DB
> register functions/tag_search

Author

Naoya Murakami [email protected]

License

LGPL 2.1. See COPYING-LGPL-2.1 for details.

groonga-function-tag-search's People

Contributors

naoa avatar

Watchers

 avatar  avatar

groonga-function-tag-search's Issues

カーディナリーが低いカラムに対する最適化

カーディナリーが低いカラムの最適化を検討。

最低限、絞り込み時のシーケンシャルサーチ、
スコアいらないのでobj_searchを使わずに直接ii_cursorを回す、
ビットマップの利用など。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.