Questions tagged [exact-match]
208 questions
4
votes
2 answers
delete a line from a file containing the exact number and quit on the first find & delete
I am trying to delete a numerical value once only from a file where there could be more than one instance of that value.
file_input=
2
4
18
8
8
10
12
14
I need to delete '8' but only once and i want to keep '18'. The final result…

user312288
- 73
- 7
4
votes
1 answer
MatchIt Package: Combining "nearest neighbor" matching and "exact" matching
I'm trying to do a PSM Analysis with the MatchIt Package in R, using "exact matching" for some variables and the "nearest neighbor" method for other variables in the same dataset
For the purpose of this question, I will use the example dataset…

Daniel
- 2,207
- 1
- 11
- 15
4
votes
1 answer
How to perform an exact match query on an analyzed field in Elasticsearch?
This is probably a very commonly asked question, however the answers I've got so far isn't satisfactory.
Problem:
I have an es index that is composed of nearly 100 fields. Most of the fields are string type and set as analyzed. However, the query…

Zobayer Hasan
- 2,187
- 6
- 22
- 38
4
votes
1 answer
Elastic Search Using a wildcard within query_string exact search
Having an issue trying to get a wildcard into and elastic search exact phrase search using query_string.
Want to allow results to be returned that would be an exact phrase of all variations. i.e. "Coors Brewing", "Coors Brewery", "Coors Brews",…

Eric
- 369
- 4
- 5
4
votes
1 answer
Elasticsearch exact matches when query text is a substring
I have data in my Elasticsearch with a field
PUT /logs/visited_domains/1
{
"visited_domain":"microsoft.com"
}
PUT /logs/visited_domains/2
{
"visited_domain":"not-microsoft.com"
}
The mapping is:
{
"properties": {
"visited_domain": {
…

cybergoof
- 1,407
- 3
- 16
- 25
4
votes
1 answer
(PHP help) If specific number exists in file, do this
this is a PHP related question.
I have searched far and wide for a solution to the following but did not find something that worked for me. If someone could help me, would be very much appreciated.
The idea that I have is to create a login page…

Funk Forty Niner
- 74,450
- 15
- 68
- 141
3
votes
1 answer
Search Exact Match R datatable
My issue is with the global search bar in the datatable package.
I'm trying to set this global search bar to find an exact match. There're some java query based instructions here:
search exact match and highlight jquery datatable regex
However, I…

Adel
- 41
- 5
3
votes
2 answers
How to find the index of exact match?
I know how to use python to report exact match in a string:
import re
word='hello,_hello,"hello'
re.findall('\\bhello\\b',word)
['hello', 'hello']
How do I report the indices of the exact matches? (in this case, 0 and 14)

Sirian
- 31
- 1
3
votes
4 answers
Searching exact values with SQL
I have this kind of table:
a b
8 7
8 2
9 7
9 2
9 3
I want to get a "a" value such that it has the exact searched values for "b". For example, if I search for (7,2), I want the query to return 8, if I search for (7,2,3), I want it to…

bcl
- 147
- 4
- 15
3
votes
5 answers
When does preg_match(): Unknown modifier error occur?
\\ $DigitalSignature have full name value passed
$SignatureMatch = '/' . strtolower( $NameFirst . ' ' . $NameLast ) . '$/';
if( true == preg_match( $SignatureMatch, strtolower( $DigitalSignature ) ) )
{
$boolIsValid = true;
}
I am having…

Somnath Muluk
- 55,015
- 38
- 216
- 226
2
votes
3 answers
How to count exact matches across two data frames within IDs in R
I have two datasets similar to the one below (but with 4m observations) and I want to count the number of matching sample days between the two data frames (see example below).
DF1
ID date
1 1992-10-15
1 …

Tanya
- 21
- 2
2
votes
0 answers
Match solr documents with exact one value in an multi valued field
I have an solr index with an multivalued field named colors, where all the colors stored, related to the document, like:
colors: ["blue","red"]
colors: ["blue" "brown", "green"]
colors: ["blue"]
Now I need to get only those documents, which has…

The Bndr
- 13,204
- 16
- 68
- 107
2
votes
1 answer
Python: Exact word match using a list and data frame
Hello Everyone :) I hope that you are well.
I am new to python and have a problem to obtain an exact word match. I have a list of words key_list and I need to use this list to loop through a string dataframe df['response']to count the number of…

Michelle13
- 43
- 5
2
votes
1 answer
Search exact text in a string
I am querying a SQL Server DB. I have a field "Remarks" that contains values pipe delimited as such
59P|W26|W511|862|W51
I'm trying to search in this field for an exact match, for example in the above I just want to return W51 not W511. I thought…

tia97
- 350
- 4
- 8
- 16
2
votes
2 answers
How to find the exact match in for loop using gsub?
I want to replace just the exact terms in the data dataframe. In the example below, I am trying to replace the word java with xx but it replaces javascript as well as xxscript.
data$new
[1] "xxscript is a statically typed and xx py is a dynamically…

Ana
- 325
- 2
- 11