Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、家は建物であるため、「建物」を検索すると、Lucene は「家」の一致も返します。これは同義語と同じではありません。「家」の検索は「建物」と一致するべきではありません。
ハイパーニムの辞書/ハッシュ テーブルを作成し、ハイパーニムをサポートするクエリ拡張モジュールを作成するだけです。簡単に言えば、(1) ユーザーが検索ボックスに「Building」と入力すると (2) クエリをハッシュ テーブルに送信します (3) Building のハイパーニムを取得します (4) q=Building+House のようにクエリを展開します+アパート+ヴィラ。