Created
January 5, 2016 08:41
-
-
Save KunihikoKido/a38f6a385aa9e68f083b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"size": 0, | |
"query": { | |
"bool": { | |
"filter": [{ | |
"range": { | |
"created_at": { | |
"gte": "now-1M", | |
"lte": "now" | |
} | |
} | |
}], | |
"must_not": [{ | |
"terms": { | |
"text.noun_pronoun_misc": ["俺", "おれ", "オレ", "僕", "ぼく", "わし", "おいら", "自分", "お前", "君", "てめぇ", "あいつ", "奴", "連中", "やつ", "奴ら", "奴等"] | |
} | |
}], | |
"should": [{ | |
"terms": { | |
"text.noun_pronoun_misc": ["わたし", "あたし", "うち", "あたくし", "あたい", "きみ", "あんた", "あーた", "あなた"] | |
} | |
}, { | |
"terms": { | |
"text.particle_final": ["かしら", "かしらん", "こと", "して", "て", "ちょうだい", "ね", "のよ", "もの", "よ", "わ", "わね", "わよ", "わよね"] | |
} | |
}], | |
"minimum_should_match": 1 | |
} | |
}, | |
"aggs": { | |
"noun_pronoun_misc": { | |
"significant_terms": { | |
"field": "text.noun_pronoun_misc", | |
"exclude": "これ|それ|あれ|どれ|ここ|そこ|あそこ|どこ|こっち|そっち|あっち|どっち|こちら|そちら|あちら|どちら|こいつ|あいつ|どいつ|こなた|そなた|あなた|どなた|この|その|あの|どの|こう|そう|ああ|どう|こんな|そんな|あんな|どんな|何|なん|なに|いつ|何時|いくつ|そっ|何処|みんな|皆|みなさん|誰|だれ" | |
} | |
}, | |
"particle_final": { | |
"significant_terms": { | |
"field": "text.particle_final" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment