Skip to content

[doc] support ngram_search function - #899

Merged
morningman merged 1 commit into
apache:masterfrom
Mryange:ngram_search
Sep 27, 2024
Merged

[doc] support ngram_search function#899
morningman merged 1 commit into
apache:masterfrom
Mryange:ngram_search

Conversation

@Mryange

Copy link
Copy Markdown
Contributor

@luzhijingluzhijing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add it in branch-3.0

HappenLee pushed a commit to apache/doris that referenced this pull request Jul 26, 2024
mysql [test]>select ngram_search('123456789' , '12345' , 3);
+---------------------------------------+
| ngram_search('123456789', '12345', 3) |
+---------------------------------------+
| 0.6 |
+---------------------------------------+
1 row in set (0.01 sec)
mysql [test]>select ngram_search("abababab","babababa",2);
+-----------------------------------------+
| ngram_search('abababab', 'babababa', 2) |
+-----------------------------------------+
| 1 |
+-----------------------------------------+
1 row in set (0.01 sec)
```
doc apache/doris-website#899

@luzhijingluzhijing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KassieZKassieZ added bug Something is incorrect and removed Reviewed labels Aug 30, 2024
@Mryange

Copy link
Copy Markdown
ContributorAuthor

run buildall

Mryange added a commit to Mryange/doris that referenced this pull request Sep 18, 2024
mysql [test]>select ngram_search('123456789' , '12345' , 3);
+---------------------------------------+
| ngram_search('123456789', '12345', 3) |
+---------------------------------------+
| 0.6 |
+---------------------------------------+
1 row in set (0.01 sec)
mysql [test]>select ngram_search("abababab","babababa",2);
+-----------------------------------------+
| ngram_search('abababab', 'babababa', 2) |
+-----------------------------------------+
| 1 |
+-----------------------------------------+
1 row in set (0.01 sec)
```
doc apache/doris-website#899
Mryange added a commit to Mryange/doris that referenced this pull request Sep 18, 2024
mysql [test]>select ngram_search('123456789' , '12345' , 3);
+---------------------------------------+
| ngram_search('123456789', '12345', 3) |
+---------------------------------------+
| 0.6 |
+---------------------------------------+
1 row in set (0.01 sec)
mysql [test]>select ngram_search("abababab","babababa",2);
+-----------------------------------------+
| ngram_search('abababab', 'babababa', 2) |
+-----------------------------------------+
| 1 |
+-----------------------------------------+
1 row in set (0.01 sec)
```
doc apache/doris-website#899
yiguolei pushed a commit to apache/doris that referenced this pull request Sep 21, 2024
#38226 mysql [test]>select ngram_search('123456789' , '12345' , 3);
+---------------------------------------+
| ngram_search('123456789', '12345', 3) |
+---------------------------------------+
| 0.6 |
+---------------------------------------+
1 row in set (0.01 sec)
mysql [test]>select ngram_search("abababab","babababa",2);
+-----------------------------------------+
| ngram_search('abababab', 'babababa', 2) |
+-----------------------------------------+
| 1 |
+-----------------------------------------+
1 row in set (0.01 sec)
```
doc apache/doris-website#899
## Proposed changes
Issue Number: close #xxx
<!--Describe your changes.-->
@Mryange

Copy link
Copy Markdown
ContributorAuthor

run buildall

@Mryange
Mryangeforce-pushed the ngram_search branch 2 times, most recently from 5849fe3 to f506ac9CompareSeptember 26, 2024 10:37

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add code block when use numeric expression.
image

@KassieZKassieZ added Reviewed and removed bug Something is incorrect labels Sep 26, 2024
@morningman
morningman merged commit e676a91 into apache:masterSep 27, 2024
dataroaring pushed a commit to apache/doris that referenced this pull request Oct 9, 2024
mysql [test]>select ngram_search('123456789' , '12345' , 3);
+---------------------------------------+
| ngram_search('123456789', '12345', 3) |
+---------------------------------------+
| 0.6 |
+---------------------------------------+
1 row in set (0.01 sec)
mysql [test]>select ngram_search("abababab","babababa",2);
+-----------------------------------------+
| ngram_search('abababab', 'babababa', 2) |
+-----------------------------------------+
| 1 |
+-----------------------------------------+
1 row in set (0.01 sec)
```
doc apache/doris-website#899
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Apr 24, 2026
mysql [test]>select ngram_search('123456789' , '12345' , 3);
+---------------------------------------+
| ngram_search('123456789', '12345', 3) |
+---------------------------------------+
| 0.6 |
+---------------------------------------+
1 row in set (0.01 sec)
mysql [test]>select ngram_search("abababab","babababa",2);
+-----------------------------------------+
| ngram_search('abababab', 'babababa', 2) |
+-----------------------------------------+
| 1 |
+-----------------------------------------+
1 row in set (0.01 sec)
```
doc apache/doris-website#899
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Mryange@luzhijing@KassieZ@morningman