Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2566

How do I run a full text search on a property using the C# LINQ Driver?

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.8.0
    • Component/s: Linq

      I have a text index defined like this:

      { Builders<ApplicationLog>.IndexKeys.Ascending(k => k.ApplicationId).Text(k => k.LogMessage).Descending(k => k.LastModifiedTimeTicks), base.DefaultOptions("aid_lm_lmtt_nsprsc_index") },   //Can only have one text index.
      

      How do I use LINQ to run a search which utilizes this text index?

      I have searched everywhere, cannot figure it out.

       

            Assignee:
            wan.bachtiar@mongodb.com Wan Bachtiar
            Reporter:
            vdevappa@locusrobotics.com Vijay Devappa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: