hibernate search3.2 をベースにブック検索機能を実装しています。
Book オブジェクトには、authornames というフィールドが含まれています。Authornames の値は名前のリストで、コンマは区切り文字です。たとえば、「John Will、Robin Rod、James Timerberland」などです。
@Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED,store=Store.YES)
@FieldBridge(impl=CollectionToCSVBridge.class)
private Set<String> authornames;
それぞれの名前を UN_TOKENIZED にする必要があるため、ユーザーは単一の著者名 (John Will、Robin Rod、または James Timerberland) で本を検索します。
Luke を使用してインデックスを確認し、authornames フィールドの値は「John Will、Robin Rod、James Timerberland」として格納されていますが、「authornames:John Will」をクエリしても結果を取得できません。
どうすればそれを行うことができますか?