After some time I retry to download elasticaSearch, now it work, incategory don't realy work (so for me: !incategory: and -incategory: to include, I don't have exclude, the oprator like OR, AND, NOT don't work).
So in order to run ElasticSearch I have to do a command in the cmd on windows, but I need to have a cmd run constantly. I shear on the internet and I find the commend START \B
.So now I have elasticSearsh who run in a hidden cmd. To stop it I just have to close my common cmd.
so here is the result with &cirrusDumpQuery for !incategory:"Actif" -incategory:"Sql"
{
"__main__": {
"description": "full_text search for '!incategory:\"Actif\" -incategory:\"Sql\"'",
"path": "test\/page\/_search",
"params": {
"timeout": "20s",
"search_type": "dfs_query_then_fetch"
},
"query": {
"_source": [
"namespace",
"title",
"namespace_text",
"wiki",
"redirect.*",
"timestamp",
"text_bytes"
],
"stored_fields": [
"text.word_count"
],
"query": {
"bool": {
"minimum_should_match": 1,
"should": [
{
"query_string": {
"query": "!incategory\\: (all.plain:\"Actif\"~0^1)",
"fields": [
"all.plain^1",
"all^0.5"
],
"phrase_slop": 0,
"default_operator": "AND",
"allow_leading_wildcard": true,
"fuzzy_prefix_length": 2,
"rewrite": "top_terms_boost_1024"
}
},
{
"multi_match": {
"fields": [
"all_near_match^2",
"all_near_match.asciifolding^1.5"
],
"query": "!incategory:"
}
}
],
"filter": [
{
"bool": {
"must": [
{
"terms": {
"namespace": [
0,
4,
6,
14
]
}
}
],
"must_not": [
{
"bool": {
"should": [
{
"match": {
"category.lowercase_keyword": {
"query": "Sql"
}
}
}
]
}
}
]
}
}
]
}
},
"highlight": {
"pre_tags": [
"\ue000"
],
"post_tags": [
"\ue001"
],
"fields": {
"title": {
"type": "fvh",
"number_of_fragments": 0,
"order": "score",
"matched_fields": [
"title",
"title.plain"
]
},
"redirect.title": {
"type": "fvh",
"number_of_fragments": 1,
"order": "score",
"fragment_size": 10000,
"matched_fields": [
"redirect.title",
"redirect.title.plain"
]
},
"category": {
"type": "fvh",
"number_of_fragments": 1,
"order": "score",
"fragment_size": 10000,
"matched_fields": [
"category",
"category.plain"
]
},
"heading": {
"type": "fvh",
"number_of_fragments": 1,
"order": "score",
"fragment_size": 10000,
"matched_fields": [
"heading",
"heading.plain"
]
},
"text": {
"type": "fvh",
"number_of_fragments": 1,
"order": "score",
"fragment_size": 150,
"no_match_size": 150,
"matched_fields": [
"text",
"text.plain"
]
},
"auxiliary_text": {
"type": "fvh",
"number_of_fragments": 1,
"order": "score",
"fragment_size": 150,
"matched_fields": [
"auxiliary_text",
"auxiliary_text.plain"
]
},
"file_text": {
"type": "fvh",
"number_of_fragments": 1,
"order": "score",
"fragment_size": 150,
"matched_fields": [
"file_text",
"file_text.plain"
]
}
},
"highlight_query": {
"query_string": {
"query": "!incategory\\: (title.plain:\"Actif\"~0^20 OR redirect.title.plain:\"Actif\"~0^15 OR category.plain:\"Actif\"~0^8 OR heading.plain:\"Actif\"~0^5 OR opening_text.plain:\"Actif\"~0^3 OR text.plain:\"Actif\"~0^1 OR auxiliary_text.plain:\"Actif\"~0^0.5 OR file_text.plain:\"Actif\"~0^0.5)",
"fields": [
"title.plain^20",
"redirect.title.plain^15",
"category.plain^8",
"heading.plain^5",
"opening_text.plain^3",
"text.plain^1",
"auxiliary_text.plain^0.5",
"file_text.plain^0.5",
"title^10",
"redirect.title^7.5",
"category^4",
"heading^2.5",
"opening_text^1.5",
"text^0.5",
"auxiliary_text^0.25",
"file_text^0.25"
],
"phrase_slop": 1,
"default_operator": "AND",
"allow_leading_wildcard": true,
"fuzzy_prefix_length": 2,
"rewrite": "top_terms_boost_1024"
}
}
},
"stats": [
"full_text",
"full_text_querystring",
"complex_query",
"incategory",
"query_string"
],
"rescore": [
{
"window_size": 8192,
"query": {
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"rescore_query": {
"function_score": {
"functions": [
{
"field_value_factor": {
"field": "incoming_links",
"modifier": "log2p",
"missing": 0
}
},
{
"weight": 0.1,
"filter": {
"terms": {
"namespace": [
4
]
}
}
},
{
"weight": 0.2,
"filter": {
"terms": {
"namespace": [
6,
14
]
}
}
}
]
}
}
}
}
],
"size": 21
},
"options": {
"timeout": "20s",
"search_type": "dfs_query_then_fetch"
}
}
}