confluence lucene

###

 https://www.ricksoft.jp/qa/questions/3342475

```
日本語の場合は、インデックス言語の設定にも依存しますが、基本的には単語に分割して検索しています。

「関西国際空港 移動時間」 といった検索キーワードだとすると・・・「関西 OR 国際 OR 空港 OR 移動 OR 時間」 のような感じです。

日本語の単語の場合は極力フレーズ検索（ダブルコーテーションで括る検索方法）とANDオペレータを活用してください。

    https://confluence.atlassian.com/display/DOC/Confluence+Search+Syntax

「"関西国際空港" AND "移動時間"」 で期待する結果は返ってくるかと思います。
```


###
```
http://confluence.xxx.co.jp/explain.action?queryString=%E8%88%AA%E7%A9%BA%E4%BC%9A%E7%A4%BE
```

```
 query:

((((spanNear([title:航, title:空], 5, false) spanNear([title:航, title:会], 5, false) spanNear([title:空, title:会], 5, false) spanNear([title:航, title:社], 5, false) spanNear([title:空, title:社], 5, false) spanNear([title:会, title:社], 5, false))^2.0) (spanNear([contentBody:航, contentBody:空], 5, false) spanNear([contentBody:航, contentBody:会], 5, false) spanNear([contentBody:空, contentBody:会], 5, false) spanNear([contentBody:航, contentBody:社], 5, false) spanNear([contentBody:空, contentBody:社], 5, false) spanNear([contentBody:会, contentBody:社], 5, false)))^4.0) title:"航 空 会 社"^2.0 contentBody:"航 空 会 社" ((title:航^2.0 title:空^2.0 title:会^2.0 title:社^2.0) (contentBody:航 contentBody:空 contentBody:会 contentBody:社))

(1) 3.画面詳細:
173.03941 = boostByModificationDate
  150.46906 = (MATCH) sum of:
    124.839294 = (MATCH) sum of:
      124.839294 = (MATCH) sum of:
        24.157236 = (MATCH) weight(spanNear([contentBody:航, contentBody:空], 5, false) in 790) [BM25LSimilarity], result of:
          24.157236 = score(doc=790,freq=3.333333 = phraseFreq=3.333333), product of:
            4.0 = boost
            8.672939 = idf(), sum of:
              3.89629 = idf(docFreq=20, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.69633937 = tfNorm, computed from:
              3.333333 = phraseFreq=3.333333
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        21.640324 = (MATCH) weight(spanNear([contentBody:航, contentBody:会], 5, false) in 790) [BM25LSimilarity], result of:
          21.640324 = score(doc=790,freq=0.5 = phraseFreq=0.5), product of:
            4.0 = boost
            8.308973 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.65111303 = tfNorm, computed from:
              0.5 = phraseFreq=0.5
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        21.565535 = (MATCH) weight(spanNear([contentBody:空, contentBody:会], 5, false) in 790) [BM25LSimilarity], result of:
          21.565535 = score(doc=790,freq=5.2666664 = phraseFreq=5.2666664), product of:
            4.0 = boost
            7.4286146 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              3.89629 = idf(docFreq=20, maxDocs=1008)
            0.72575897 = tfNorm, computed from:
              5.2666664 = phraseFreq=5.2666664
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        20.89394 = (MATCH) weight(spanNear([contentBody:航, contentBody:社], 5, false) in 790) [BM25LSimilarity], result of:
          20.89394 = score(doc=790,freq=0.4 = phraseFreq=0.4), product of:
            4.0 = boost
            8.042706 = idf(), sum of:
              3.2660568 = idf(docFreq=38, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.64946866 = tfNorm, computed from:
              0.4 = phraseFreq=0.4
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        18.65399 = (MATCH) weight(spanNear([contentBody:空, contentBody:社], 5, false) in 790) [BM25LSimilarity], result of:
          18.65399 = score(doc=790,freq=0.5 = phraseFreq=0.5), product of:
            4.0 = boost
            7.162347 = idf(), sum of:
              3.2660568 = idf(docFreq=38, maxDocs=1008)
              3.89629 = idf(docFreq=20, maxDocs=1008)
            0.65111303 = tfNorm, computed from:
              0.5 = phraseFreq=0.5
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        17.92827 = (MATCH) weight(spanNear([contentBody:会, contentBody:社], 5, false) in 790) [BM25LSimilarity], result of:
          17.92827 = score(doc=790,freq=1.0 = phraseFreq=1.0), product of:
            4.0 = boost
            6.798382 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              3.2660568 = idf(docFreq=38, maxDocs=1008)
            0.6592845 = tfNorm, computed from:
              1.0 = phraseFreq=1.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
    10.449013 = (MATCH) weight(contentBody:"航 空 会 社" in 790) [BM25LSimilarity], result of:
      10.449013 = score(doc=790,freq=2.0 = phraseFreq=2.0), product of:
        15.471321 = idf(), sum of:
          4.776649 = idf(docFreq=8, maxDocs=1008)
          3.89629 = idf(docFreq=20, maxDocs=1008)
          3.5323248 = idf(docFreq=29, maxDocs=1008)
          3.2660568 = idf(docFreq=38, maxDocs=1008)
        0.67537946 = tfNorm, computed from:
          2.0 = phraseFreq=2.0
          1.25 = parameter k1
          0.3 = parameter b
          117.507935 = avgFieldLength
          21399.51 = fieldLength
    15.180763 = (MATCH) sum of:
      15.180763 = (MATCH) sum of:
        3.789276 = (MATCH) weight(contentBody:航 in 790) [BM25LSimilarity], result of:
          3.789276 = score(doc=790,freq=10.0 = termFreq=10.0), product of:
            4.776649 = idf(docFreq=8, maxDocs=1008)
            0.7932917 = tfNorm, computed from:
              10.0 = termFreq=10.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        4.4914927 = (MATCH) weight(contentBody:空 in 790) [BM25LSimilarity], result of:
          4.4914927 = score(doc=790,freq=45.0 = termFreq=45.0), product of:
            3.89629 = idf(docFreq=20, maxDocs=1008)
            1.1527613 = tfNorm, computed from:
              45.0 = termFreq=45.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        4.016493 = (MATCH) weight(contentBody:会 in 790) [BM25LSimilarity], result of:
          4.016493 = score(doc=790,freq=43.0 = termFreq=43.0), product of:
            3.5323248 = idf(docFreq=29, maxDocs=1008)
            1.1370678 = tfNorm, computed from:
              43.0 = termFreq=43.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
        2.8835025 = (MATCH) weight(contentBody:社 in 790) [BM25LSimilarity], result of:
          2.8835025 = score(doc=790,freq=17.0 = termFreq=17.0), product of:
            3.2660568 = idf(docFreq=38, maxDocs=1008)
            0.88286966 = tfNorm, computed from:
              17.0 = termFreq=17.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              21399.51 = fieldLength
(2) 3.機能詳細0:
164.29854 = boostByModificationDate
  142.8683 = (MATCH) sum of:
    120.767365 = (MATCH) sum of:
      120.767365 = (MATCH) sum of:
        22.723082 = (MATCH) weight(spanNear([contentBody:航, contentBody:空], 5, false) in 138) [BM25LSimilarity], result of:
          22.723082 = score(doc=138,freq=1.0 = phraseFreq=1.0), product of:
            4.0 = boost
            8.672939 = idf(), sum of:
              3.89629 = idf(docFreq=20, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.65499943 = tfNorm, computed from:
              1.0 = phraseFreq=1.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        21.56848 = (MATCH) weight(spanNear([contentBody:航, contentBody:会], 5, false) in 138) [BM25LSimilarity], result of:
          21.56848 = score(doc=138,freq=0.5 = phraseFreq=0.5), product of:
            4.0 = boost
            8.308973 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.6489514 = tfNorm, computed from:
              0.5 = phraseFreq=0.5
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        19.343292 = (MATCH) weight(spanNear([contentBody:空, contentBody:会], 5, false) in 138) [BM25LSimilarity], result of:
          19.343292 = score(doc=138,freq=0.6666667 = phraseFreq=0.6666667), product of:
            4.0 = boost
            7.4286146 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              3.89629 = idf(docFreq=20, maxDocs=1008)
            0.6509724 = tfNorm, computed from:
              0.6666667 = phraseFreq=0.6666667
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        20.838205 = (MATCH) weight(spanNear([contentBody:航, contentBody:社], 5, false) in 138) [BM25LSimilarity], result of:
          20.838205 = score(doc=138,freq=0.4 = phraseFreq=0.4), product of:
            4.0 = boost
            8.042706 = idf(), sum of:
              3.2660568 = idf(docFreq=38, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.6477362 = tfNorm, computed from:
              0.4 = phraseFreq=0.4
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        18.59206 = (MATCH) weight(spanNear([contentBody:空, contentBody:社], 5, false) in 138) [BM25LSimilarity], result of:
          18.59206 = score(doc=138,freq=0.5 = phraseFreq=0.5), product of:
            4.0 = boost
            7.162347 = idf(), sum of:
              3.2660568 = idf(docFreq=38, maxDocs=1008)
              3.89629 = idf(docFreq=20, maxDocs=1008)
            0.6489514 = tfNorm, computed from:
              0.5 = phraseFreq=0.5
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        17.702236 = (MATCH) weight(spanNear([contentBody:会, contentBody:社], 5, false) in 138) [BM25LSimilarity], result of:
          17.702236 = score(doc=138,freq=0.6666667 = phraseFreq=0.6666667), product of:
            4.0 = boost
            6.798382 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              3.2660568 = idf(docFreq=38, maxDocs=1008)
            0.6509724 = tfNorm, computed from:
              0.6666667 = phraseFreq=0.6666667
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
    10.3187475 = (MATCH) weight(contentBody:"航 空 会 社" in 138) [BM25LSimilarity], result of:
      10.3187475 = score(doc=138,freq=2.0 = phraseFreq=2.0), product of:
        15.471321 = idf(), sum of:
          4.776649 = idf(docFreq=8, maxDocs=1008)
          3.89629 = idf(docFreq=20, maxDocs=1008)
          3.5323248 = idf(docFreq=29, maxDocs=1008)
          3.2660568 = idf(docFreq=38, maxDocs=1008)
        0.6669597 = tfNorm, computed from:
          2.0 = phraseFreq=2.0
          1.25 = parameter k1
          0.3 = parameter b
          117.507935 = avgFieldLength
          29127.111 = fieldLength
    11.782192 = (MATCH) sum of:
      11.782192 = (MATCH) sum of:
        3.562948 = (MATCH) weight(contentBody:航 in 138) [BM25LSimilarity], result of:
          3.562948 = score(doc=138,freq=9.0 = termFreq=9.0), product of:
            4.776649 = idf(docFreq=8, maxDocs=1008)
            0.7459095 = tfNorm, computed from:
              9.0 = termFreq=9.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        3.3678517 = (MATCH) weight(contentBody:空 in 138) [BM25LSimilarity], result of:
          3.3678517 = score(doc=138,freq=21.0 = termFreq=21.0), product of:
            3.89629 = idf(docFreq=20, maxDocs=1008)
            0.864374 = tfNorm, computed from:
              21.0 = termFreq=21.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        2.5966704 = (MATCH) weight(contentBody:会 in 138) [BM25LSimilarity], result of:
          2.5966704 = score(doc=138,freq=8.0 = termFreq=8.0), product of:
            3.5323248 = idf(docFreq=29, maxDocs=1008)
            0.73511654 = tfNorm, computed from:
              8.0 = termFreq=8.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
        2.2547226 = (MATCH) weight(contentBody:社 in 138) [BM25LSimilarity], result of:
          2.2547226 = score(doc=138,freq=4.0 = termFreq=4.0), product of:
            3.2660568 = idf(docFreq=38, maxDocs=1008)
            0.69035006 = tfNorm, computed from:
              4.0 = termFreq=4.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              29127.111 = fieldLength
(3) 2.機能一覧:
78.25638 = boostByModificationDate
  68.04903 = (MATCH) sum of:
    53.259895 = (MATCH) sum of:
      53.259895 = (MATCH) sum of:
        26.44439 = (MATCH) weight(spanNear([contentBody:航, contentBody:空], 5, false) in 796) [BM25LSimilarity], result of:
          26.44439 = score(doc=796,freq=0.33333334 = phraseFreq=0.33333334), product of:
            4.0 = boost
            8.672939 = idf(), sum of:
              3.89629 = idf(docFreq=20, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.76226723 = tfNorm, computed from:
              0.33333334 = phraseFreq=0.33333334
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              655.36 = fieldLength
        26.815508 = (MATCH) weight(spanNear([contentBody:空, contentBody:会], 5, false) in 796) [BM25LSimilarity], result of:
          26.815508 = score(doc=796,freq=0.8 = phraseFreq=0.8), product of:
            4.0 = boost
            7.4286146 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              3.89629 = idf(docFreq=20, maxDocs=1008)
            0.9024397 = tfNorm, computed from:
              0.8 = phraseFreq=0.8
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              655.36 = fieldLength
    14.789129 = (MATCH) sum of:
      14.789129 = (MATCH) sum of:
        4.5604653 = (MATCH) weight(contentBody:航 in 796) [BM25LSimilarity], result of:
          4.5604653 = score(doc=796,freq=1.0 = termFreq=1.0), product of:
            4.776649 = idf(docFreq=8, maxDocs=1008)
            0.9547416 = tfNorm, computed from:
              1.0 = termFreq=1.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              655.36 = fieldLength
        5.576947 = (MATCH) weight(contentBody:空 in 796) [BM25LSimilarity], result of:
          5.576947 = score(doc=796,freq=4.0 = termFreq=4.0), product of:
            3.89629 = idf(docFreq=20, maxDocs=1008)
            1.4313481 = tfNorm, computed from:
              4.0 = termFreq=4.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              655.36 = fieldLength
        4.651716 = (MATCH) weight(contentBody:会 in 796) [BM25LSimilarity], result of:
          4.651716 = score(doc=796,freq=3.0 = termFreq=3.0), product of:
            3.5323248 = idf(docFreq=29, maxDocs=1008)
            1.3168994 = tfNorm, computed from:
              3.0 = termFreq=3.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              655.36 = fieldLength
(4) Business Overview:
77.0115 = boostByModificationDate
  66.96652 = (MATCH) sum of:
    47.906494 = (MATCH) sum of:
      47.906494 = (MATCH) sum of:
        28.049732 = (MATCH) weight(spanNear([contentBody:航, contentBody:空], 5, false) in 122) [BM25LSimilarity], result of:
          28.049732 = score(doc=122,freq=0.6666667 = phraseFreq=0.6666667), product of:
            4.0 = boost
            8.672939 = idf(), sum of:
              3.89629 = idf(docFreq=20, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.8085417 = tfNorm, computed from:
              0.6666667 = phraseFreq=0.6666667
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              1024.0 = fieldLength
        19.85676 = (MATCH) weight(spanNear([contentBody:会, contentBody:社], 5, false) in 122) [BM25LSimilarity], result of:
          19.85676 = score(doc=122,freq=0.33333334 = phraseFreq=0.33333334), product of:
            4.0 = boost
            6.798382 = idf(), sum of:
              3.5323248 = idf(docFreq=29, maxDocs=1008)
              3.2660568 = idf(docFreq=38, maxDocs=1008)
            0.7302017 = tfNorm, computed from:
              0.33333334 = phraseFreq=0.33333334
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              1024.0 = fieldLength
    19.060024 = (MATCH) sum of:
      19.060024 = (MATCH) sum of:
        5.687776 = (MATCH) weight(contentBody:航 in 122) [BM25LSimilarity], result of:
          5.687776 = score(doc=122,freq=3.0 = termFreq=3.0), product of:
            4.776649 = idf(docFreq=8, maxDocs=1008)
            1.1907461 = tfNorm, computed from:
              3.0 = termFreq=3.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              1024.0 = fieldLength
        5.4037805 = (MATCH) weight(contentBody:空 in 122) [BM25LSimilarity], result of:
          5.4037805 = score(doc=122,freq=5.0 = termFreq=5.0), product of:
            3.89629 = idf(docFreq=20, maxDocs=1008)
            1.386904 = tfNorm, computed from:
              5.0 = termFreq=5.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              1024.0 = fieldLength
        3.7264066 = (MATCH) weight(contentBody:会 in 122) [BM25LSimilarity], result of:
          3.7264066 = score(doc=122,freq=2.0 = termFreq=2.0), product of:
            3.5323248 = idf(docFreq=29, maxDocs=1008)
            1.0549445 = tfNorm, computed from:
              2.0 = termFreq=2.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              1024.0 = fieldLength
        4.2420626 = (MATCH) weight(contentBody:社 in 122) [BM25LSimilarity], result of:
          4.2420626 = score(doc=122,freq=4.0 = termFreq=4.0), product of:
            3.2660568 = idf(docFreq=38, maxDocs=1008)
            1.2988331 = tfNorm, computed from:
              4.0 = termFreq=4.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              1024.0 = fieldLength
(5) Requirement from Users:
46.81139 = boostByModificationDate
  40.70556 = (MATCH) sum of:
    30.41632 = (MATCH) sum of:
      30.41632 = (MATCH) sum of:
        30.41632 = (MATCH) weight(spanNear([contentBody:航, contentBody:空], 5, false) in 118) [BM25LSimilarity], result of:
          30.41632 = score(doc=118,freq=0.33333334 = phraseFreq=0.33333334), product of:
            4.0 = boost
            8.672939 = idf(), sum of:
              3.89629 = idf(docFreq=20, maxDocs=1008)
              4.776649 = idf(docFreq=8, maxDocs=1008)
            0.8767593 = tfNorm, computed from:
              0.33333334 = phraseFreq=0.33333334
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              163.84 = fieldLength
    10.28924 = (MATCH) sum of:
      10.28924 = (MATCH) sum of:
        5.6668315 = (MATCH) weight(contentBody:航 in 118) [BM25LSimilarity], result of:
          5.6668315 = score(doc=118,freq=1.0 = termFreq=1.0), product of:
            4.776649 = idf(docFreq=8, maxDocs=1008)
            1.1863613 = tfNorm, computed from:
              1.0 = termFreq=1.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              163.84 = fieldLength
        4.622408 = (MATCH) weight(contentBody:空 in 118) [BM25LSimilarity], result of:
          4.622408 = score(doc=118,freq=1.0 = termFreq=1.0), product of:
            3.89629 = idf(docFreq=20, maxDocs=1008)
            1.1863613 = tfNorm, computed from:
              1.0 = termFreq=1.0
              1.25 = parameter k1
              0.3 = parameter b
              117.507935 = avgFieldLength
              163.84 = fieldLength