Questions tagged [match-phrase]
69 questions
0
votes
0 answers
I want to allow the user to write phrase query on positional index and system returns matched documents for the query (note: using python)
the project is divided into two parts the fist part: reading ten files 2.applying tokenization 3.removing stop words 4.then building a positional index and I did them all but I have a real problem with letting the user write a phrase query on…
0
votes
0 answers
How to make edge_ngram token match with certaint quantity ofwords between them?
I'm trying to make a search request that retrieves the results only when less than
5 words are between requested tokens.
{
"settings": {
"index": {
"analysis": {
"filter": {
"stopWords": {
"type": "stop",
…

darth jemico
- 605
- 2
- 9
- 18
0
votes
0 answers
Return vocabulary terms with the matched text in Spacy PhraseMatcher
I am using PhraseMatcher with a list of terms that need to be matched on a text. The code returns the matches in the text. But I would like to have the corresponding terms of the TermList next to them. I have a complete vocabulary that I want to use…

harryd
- 63
- 5
0
votes
0 answers
Elastic search group two fields to single field without copy_to parameter
The problem
I have object employee with two separate properties:
FirstName
LastName
For relevant ordering I must use match_phrase parameter, cause match_phrase provides better relevance depending on word order.
I tried use copy_to parameter for…

llotall
- 555
- 5
- 11
0
votes
0 answers
How can I have a True or False column in a data frame if it contains a certain sentence using spacy?
I have created a function which is intended to find relevant sentence with the CO2 equivalent inside a dataframe of sentences which I created earlier as text. I want it to show 1 if the sentence contains it and 0 if it doesn't. So each row in the df…

Niclas Schmidbauer
- 13
- 3
0
votes
1 answer
Elatisearch match_phrase_prefix query, with exact prefix match
I have a match_phrase_prefix query, which works as expected. But when the users passes any special characters at the end of the keyword, ES ignores these characters, and still returns the result.
query{ match_phrase_prefix:{ content: { query:…

Desmond Dias
- 51
- 10
0
votes
0 answers
Finding documents containing a phrase in a big corpus
I have a big corpus of text documents, which is dynamically updated. Every second nearly 100 new documents are added to this corpus.
I want to find the documents that contain an input phrase query (or one of the input phrases) in real-time. The…

Hossein
- 2,041
- 1
- 16
- 29
0
votes
0 answers
Query consecutive words using match_phrase elasticsearch works unexpected
I have the parameter name as a text:
{
"mappings": {
"_doc": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
…

Cesar Jr Rodriguez
- 1,691
- 4
- 22
- 35
0
votes
3 answers
Need help in matching strings from phrases from multiple columns of a dataframe in python
Need help in matching phrases in the data given below where I need to match phrases from both TextA and TextB.
The following code did not helped me in doing it how can I address this I had 100s of them to match
#sorting jumbled phrases
def…

Sherlock
- 73
- 7
0
votes
1 answer
Elasticsearch: Not giving match
I want to perform both exact word match and partial word/sub string match. For example, if I search for "test product" then I should be able to find "test" and "product" related text in the result. I'm searching Elasticsearch with the below match…

revathi
- 1
- 1
- 2
0
votes
2 answers
How to turn off autocomplete for easticsearch match_phrase or match_phrase_prefix?
I have ES data, which contains a field name of type text. I have to search by a lowercase input, while the actual name might use lower and uppercase symbols. I need only the exact (but case insensitive) names.
I try to use match_phrase (as well as…

Mikhail Geyer
- 881
- 2
- 9
- 27
0
votes
1 answer
How to takes word order into account but does not require all searched words to exist in document for ElasticSearch match_phrase query?
Suppose that my index has two documents:
"get my money"
"my money get here"
When I do a regular match query for "get my money", both documents match correctly but they get equal scores. However, I want the order of words to be significant during…

Mehedi Hasan
- 61
- 1
- 10
0
votes
2 answers
Extract keywords/phrases from a given short text using python and its libraries
From a user given input of job description, i need to extract the keywords or phrases, using python and its libraries. I am open for suggestions and guidance from the community of what libraries work best and if in case, its simple, please guide…

sinG20
- 143
- 2
- 15
0
votes
1 answer
elasticsearch phrase_prefix search
I'm using query_string for full text search and using type to define how to behave with full_text search, one of types that I have to use is phrase_prefix, to return documents that have exact term...
here is my problem:
when I want to search for one…

maral
- 97
- 2
- 11
0
votes
1 answer
executing a multi-“match-phrase” query in Elastic Search with `or` opeator
{
"query": {
"bool": {
"or": [
{"match_phrase": {"text": "first phrase"}},
{"match_phrase": {"text": "second phrase"}}
]
}
}
}
I want to match all documents that contain one of phrases exactly as entered.

Nik Kholtobin
- 1
- 1