Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SynonymGraphFilterの話 (2017年6月5日 第20回Solr勉強会)

4,966 views

Published on

第20回Solr勉強会の資料です。Solr 6.4から取り込まれているSynonymGraphFilterの設定方法を紹介しています。

Published in: Technology
  • Be the first to comment

SynonymGraphFilterの話 (2017年6月5日 第20回Solr勉強会)

  1. 1. SynonymGraphFilter 2017 6 5 ( ) 20 Solr
  2. 2. About me • • 
 (2017/2/1 ) • Apache Solr / Elasticsearch 
 Apache Solr &
  3. 3. Agenda • SynonymFilter • SynonymGraphFilter • SynonymGraphFilter •
  4. 4. ? • 
 ( ) • Solr ( ) fieldType SynonymFilterFactory 
 • SynonymFilter 2 ( )
  5. 5. SynonymFilter ( ) • [ 1]
 
 (5.x LuceneMatchVersion 3.3 ) • [ 2]
 PhraseQuery (MultiPhraseQuery )
  6. 6. • 
 ) [1:0,2] [2:2,3] [3:3,6] [1:0,2] [2:2,3] [3:3,6] [1:0,2] [2:3,3] [1:0,2] [ :
 , ]
  7. 7. [1] [1] [2] [3] [1] [2] [1] MultiPhraseQuery • PhraseQuery 2 OR True 
 ) MultiPhraseQuery 
 [ ]
  8. 8. SynonymFilter ( ) • https://www.slideshare.net/ ShinichiroAbe/synonym- searchingandsynonymhighligh ting • https://www.rondhuit.com/ synonym-searching-and- synonym-highlighting.html
  9. 9. SynonymGraphFilter • Solr 6.4 • / SynonymFilter 
 (SynonymFilterFactory SynonymGraphFilterFactory )
 
 • • ( ) FlattenGraphFilter
  10. 10. [1:0,2] [4:2,3] [1:0,2] [2:0,2] [3:0,2] [1:0,2] [2:0,2] [1:0,2] [1:0,2] [2:2,3] [3:3,6] [1:0,2] [2:2,3] [3:3,6] [1:0,2] [2:3,3] [1:0,2] SynonymFilter [ :
 , ] [ :
 , ] • SynonymFilter
 
 
 • SynonymGraphFilter
  11. 11. • SynonymFilter
 
 
 • SynonymGraphFilter SynonymFilter (○ )
  12. 12. SynonymGraphFilter ( ) 

  13. 13. SynonymGraphFilter • type=“query” expand=true 1. “index” SynonymGraphFilter 
 ( ) 2. “index” 
 ( ) 3. PhraseQuery MultiPhraseQuery GraphQuery MultiPhraseQuery SynonymGraphFilter ( ) 4. ( ) 
 ( ) 5. ( ) 
 ( )
  14. 14. ) PhraseQuery • SynonymGraphFilter
 ( ) • SynonymFilter
 ( ) PhraseQuery parsedquery
  15. 15. ) • SynonymGraphFilter
 ( ) • SynonymFilter
 ( )
  16. 16. • 
 -> OK • 
 -> • 
 -> • 
 ->
  17. 17. • SynonymGraphFilter 
 (PhraseQuery ) • SynonymFilter SynonymGraphFilter

×