Upgrade to Pro — share decks privately, control downloads, hide ads and more …

全文検索システムFESSを使った Web+DB PRESS 総集編の全文検索

全文検索システムFESSを使った Web+DB PRESS 総集編の全文検索

全文検索システムFESSを使って WEB+DB PRESS 総集編を全文検索しました。

Tetsuya Tatsumi

June 03, 2018
Tweet

More Decks by Tetsuya Tatsumi

Other Decks in Technology

Transcript

  1. ૯ूฤ • vol.1-24 2005೥ൃߦɹCD-ROM • vol.1-36 2007೥ൃߦɹCD-ROM • vol.1-60 2011೥ൃߦɹDVD-ROM

    • vol.1-72 2013೥ൃߦɹDVD-ROM • vol.1-84 2015೥ൃߦɹDVD-ROM • vol.1-102 2018೥ൃߦɹDVD-ROM
  2. ؀ڥߏஙखॱ • Docker for MacOS ͷઃఆ • ϝϞϦαΠζͷมߋ 2G->3.5G •

    ΠϝʔδDPEFMJCTGFTT͔Βίϯςφىಈ • FESSͷνϡʔχϯά • ࠷େϑΝΠϧαΠζ • ώʔϓαΠζ • Ϋϩʔϧઃఆ • Ϋϩʔϧ
  3. ίϯςφىಈ docker run -d -p 8080:8080 --name fess -v /Users/dokechin/Downloads/

    webdb_sp_001-102/:/webdb_sp_001-102 codelibs/fess:latest
  4. ύϥϝʔλνϡʔχϯά docker exec -it fess bash perl -i -pe 's/10485760/248000000/'

    /usr/ share/fess/app/WEB-INF/classes/crawler/ contentlength.xml perl -i -pe 's/-Xms1g/-Xms2g/' /etc/ elasticsearch/jvm.options perl -i -pe 's/-Xmx1g/-Xmx2g/' /etc/ elasticsearch/jvm.options exit
  5. .0%FQBSTF perl -MO=Deparse -i -pe 's/-Xms1g/- Xms2g/' /etc/elasticsearch/jvm.options BEGIN {

    $^I = ""; } LINE: while (defined($_ = <ARGV>)) { s/-Xms1g/-Xms2g/; } continue { die "-p destination: $!\n" unless print $_; } -e syntax OK
  6. %PDLFSpMFʹࠩ෼Λهड़ FROM codelibs/fess:latest LABEL maintainer "dokechin" RUN perl -i -pe

    's/10485760/248000000/' /usr/share/ fess/app/WEB-INF/classes/crawler/contentlength.xml RUN perl -i -pe 's/-Xms1g/-Xms2g/' /etc/elasticsearch/ jvm.options RUN perl -i -pe 's/-Xmx1g/-Xmx2g/' /etc/elasticsearch/ jvm.options
  7. ΠϝʔδϏϧυɹˍɹ36/ # FESSͷόʔδϣϯΞοϓͷλΠϛϯάͰ docker build -t dokechin/fess . docker run

    -d -p 8080:8080 --name fess -v /Users/dokechin/Downloads/ webdb_sp_001-102/:/webdb_sp_001-102 dokechin/fess
  8. ىಈ࣌ʹ౉͢ docker run -d -p 8080:8080 --name fess -e 'ES_JAVA_OPTS="-Xms2g

    - Xmx2g"' -v $PWD/contentlength.xml:/ usr/share/fess/app/WEB-INF/classes/ crawler/contentlength.xml -v $PWD/ webdb_sp/:/webdb_sp codelibs/fess