Questions tagged [exact-match]
208 questions
27
votes
1 answer
SOLR exact match boost over text containing the exact match
I could not find a better title, I hope to change it later if possible upon your eventual sugestions.
My problem:
I got a database with music artists. These look like this: "dr. dre feat. akon", "eminem & dr. dre", "dr. dre feat. ll cool j", "dr.…

BogdanM
- 625
- 1
- 6
- 10
20
votes
2 answers
How to make Regexs only match on exact-matches?
Ok, so basically I have some bit of code that matches URLs by regexs. It then will call some function based on which regex the URL matches against. I never want for more than one function to be called for a URL and I want the regex matches to have…

Earlz
- 62,085
- 98
- 303
- 499
17
votes
3 answers
Extract only whole word using grep
I've got a big text file. I need to extract all the lines which contains the exact word "DUSP1".
Here an example of the lines:
9606 ENSP00000239223 DUSP1 BLAST
9606 ENSP00000239223 DUSP1-001 Ensembl
I want to retrieve the first line but…

Titus Pullo
- 3,751
- 15
- 45
- 65
15
votes
4 answers
C# find exact-match in string
How can I search for an exact match in a string? For example, If I had a string with this text:
label
label:
labels
And I search for label, I only want to get the first match, not the other two. I tried the Contains and IndexOf method, but they…

david
- 357
- 2
- 7
- 18
14
votes
3 answers
Elastic search exact match
I'm using elasticsearch and am having a devil of a time getting an exact match to happen. I've tried various combinations of match, query_string, etc, and I either get nothing or bad results.
Query looks like this:
{
"filter": {
"term": {
…

Josh Harrison
- 434
- 1
- 6
- 18
12
votes
4 answers
SQL Server Full-Text Search for exact match with fallback
First off there seems to be no way to get an exact match using a full-text search. This seems to be a highly discussed issue when using the full-text search method and there are lots of different solutions to achieve the desired result, however most…

bfritz
- 2,416
- 2
- 20
- 29
8
votes
1 answer
Exact-match, case-insensitive match without normalization in Elasticsearch 6.2
I have looked at every article and post I could find about performing exact-match, case-insensitive queries, but upon implementation, they do not perform what I am looking for.
Before you mark this question as a duplicate, please read the entire…

Hid
- 533
- 6
- 18
8
votes
1 answer
PowerShell: Find exact folder name
I'm trying to find a way to return the full path to a given folder. The problem is that my code returns more than one folder if there is a similar named folder. e.g. searching for "Program Files", returns "Program Files" and "Programs Files (x86)".…

woter324
- 2,608
- 5
- 27
- 47
7
votes
3 answers
Bing: search - match only exact literal strings?
I'm using PHP and the Bing API to search for certain domainnames.
I want only the results that are an EXACT match.
Somehow Bing returns results that do not match exactly.
When I search for :
"www.gebouw.nl"
I sometimes also get results like …

Dylan
- 9,129
- 20
- 96
- 153
7
votes
2 answers
JavaScript Regex does not match exact string
In the example below the output is true. It cookie and it also matches cookie14214 I'm guessing it's because cookie is in the string cookie14214. How do I hone-in this match to only get cookie?
var patt1=new…

ThomasReggi
- 55,053
- 85
- 237
- 424
6
votes
1 answer
Search for exact term in an Algolia index
I want to filter an index by an exact value of an attribute. I wonder what possibilities Algolia offers for that.
Querying an index always results in a search for substrings, that means a search term abc will always match any object which attribute…

Matthias Dietrich
- 521
- 5
- 21
5
votes
3 answers
MongoDB: Text search (exact match) using variable
MongoDB 3.4
I have a value in a variable. val1 = "Fort Minor"
I need to search in a collection stores (with text index on name field) with documents as
db.stores.insert([
{ _id: 1, name: "Java Hut", description: "Coffee and cakes" },
{…

Chakraborty
- 123
- 1
- 2
- 8
5
votes
1 answer
Pandas: Approximate join on one column, exact match on other columns
I have two pandas dataframes I want to join/merge exactly on a number of columns (say 3) and approximately, i.e nearest neighbour, on one (date) column. I also want to return the difference (days) between them. Each dataset is about 50,000 rows…

CAR ERL
- 91
- 1
- 8
4
votes
2 answers
How i can get exact match filter result in Elastic Search
I have one problem regarding elastic search, I want to search the exact match in the filters. For example, If the color filter is applied only "Black" then the elastic search should be returned only "Black" products instead of other products which…

Techleads MobileDevs
- 91
- 1
- 2
- 6
4
votes
2 answers
Inner join exactly on one column and fuzzy on another
I have two dataframes I want to join. They share two fields: group_id and person_name. I want to join exactly on group_id and fuzzy on person_name. How can I do this?
Constraints:
It should be an inner join. So group_id exactly and person_name…

Hatshepsut
- 5,962
- 8
- 44
- 80