タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

SolrとLuceneに関するHashのブックマーク (2)

  • Lucene's new analyzing suggester

    Live suggestions as you type into a search box, sometimes called suggest or autocomplete, is now a standard, essential search feature ever since Google set a high bar after going live just over four years ago. In Lucene we have several different suggest implementations, under the suggest module; today I'm describing the new AnalyzingSuggester (to be committed soon; it should be available in 4.1).

    Hash
    Hash 2012/11/26
    kuromojiにも言及 // 「これは読んでおいたほうが良い」記事だそう
  • moco(beta)'s backup: LuceneのQueryいろいろ

    Lucene入門 4章続き。前の記事でQueryParserを使ったQueryオブジェクトの作り方について書いたので、今回はQueryオブジェクトを直接newして生成するやり方について。 Queryオブジェクトを生成するといってもQueryクラスは抽象クラスなので、実際はサブクラスを生成することになる。サブクラスはQueryクラスのJavaDocを見てみればわかるように、とても沢山ある。ので、一部のみ抜粋してサンプルコードを書いてみた。なおLuceneのバージョンは3.6です。 検索対象は、以前作成した書籍データのインデックス。 TermQuery もっとも基的なクエリ。フィールド名とTermのペアを指定する。 【コード例】 summaryに単語"プログラミング"を含むドキュメントを検索する。 Term term = new Term("summary", "プログラミング"); Que

  • 1