Skip to content

Instantly share code, notes, and snippets.

@masarakki
Created November 5, 2012 11:17
Show Gist options
  • Save masarakki/4016711 to your computer and use it in GitHub Desktop.
Save masarakki/4016711 to your computer and use it in GitHub Desktop.
solrのなぞい動作

おかしいレスポンス

q=とあるクエリ&start=0&rows=1
  • 検索結果の 「イラストレーター」 がなぜか 「イラストレーターー」になる
    • 元データを 「イラストレータア」 にすると 「イラストレータアア」
    • 元データを 「イラストレータ」 にすると 「イラストレータ」
    • 元データを 「イラストレー」 にすると 「イラストレー」
    • 元データを 「イラストレーターー」 にすると 「イラストレーターー」
    • 元データを 「イラストレーターーー」 にすると 「イラストレーターーーー」

クエリをいじる

上のdocのidを指定して

q=id:#{doc_id} とあるクエリ&start=0&rows=1

正しく 「イラストレーター」

rowsを変える

q=とあるクエリ&start=0&rows=2

正しく 「イラストレーター」

debugQuery=onを付ける

q=とあるクエリ&start=0&rows=1&debugQuery=on

正しく 「イラストレーター」

なんぞこれ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment