[DOCS-6954] Full Text Search on embedded document Created: 11/Jan/16  Updated: 30/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.org/manual/reference/operator/query/text/#op._S_text
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Referrer: https://docs.mongodb.org/manual/core/index-text/
Screen Resolution: 1280 x 800
repo: docs
source: reference/operator/query/text


Participants:
Days since reply: 1 year, 14 weeks, 1 day ago
Epic Link: DOCSP-1769

 Description   

How can I perform a full text search on an embedded document? The documentation totally dodges this scenario. It should say if it is possible and an example.

Great work by the way! Keep it up!



 Comments   
Comment by Education Bot [ 01/Nov/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Comment by Kay Kim (Inactive) [ 11/Jul/17 ]

Thanks much.

$text performs a text search on the content of the fields indexed with a text index.

And in the examples:

The following examples assume a collection articles that has a version 3 text index on the field subject

So, if you index a field that is an embedded document, that would do what you want.

Generated at Thu Feb 08 07:53:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.