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?

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.8.0
    • Linq

    Description

      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.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: