question

Muhammadyousuf-1816 avatar image
0 Votes"
Muhammadyousuf-1816 asked ·

Partial string search for content field

We are using to search partial string from large string but find no result.

For example we are searching partial string

SWC330-32-O43

from content field data

nI *8789 IJ001ESWC330-32-040-PT-C669\n\n| ZqtrcpX\n\\ I 70888 )\n3\\SAKR J000ESWC330-32-O43670\n\nP/N: C2483T300-

Your reply will help us more to understand the reason










azure-cognitive-search
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HeidiSteen-9792 avatar image
0 Votes"
HeidiSteen-9792 answered ·

We have an article that covers partial string search with hyphenated content: https://docs.microsoft.com/en-us/azure/search/search-query-partial-matching

The test cases used to write that article are similar to the example you provided in your question. On the indexing side, assign an analyzer to that field that keeps the string whole. On the query side, your partial query might now just work: SWC330-32-O43. Mine did. But if it doesn't, you should add wildcard operators /.SWC330-32-O43.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.