zoukankan      html  css  js  c++  java
  • Linq To lucen.Net

    Tuesday, 13 November 2007
    This release provides a real focus on the querying abilities of the LINQ to Lucene project and is the first real 'working release', converting LINQ statements to Lucene queries with deferred query execution and object creation or projection. It culminates the majority of the required querying features for LINQ that Lucene provides natively.


    Lucene SyntaxLINQ to Lucene
    Terms & Phrases"test" or "hello dolly"c.Match("test") or c.Match("hello dolly")
    Fieldstitle:"The Right way" and text:goc.Title == "The Right way" or c.Text == "go"
    WildCardamb?rc.ContactName.Match("amb?r")
    Prefixamber*c.ContactName.StartsWith("amber")
    Fuzzyroam~ or roam~0.8c.ContactName.Like("roam") or c.ContactName.Like("roam", 0.8)
    Proximity"jakarta apache"~10c.ContactName.Like("jakarta apache", 10)
    Inclusive Rangemod_date:[20020101 TO 20030101]c.ModifiedDate.Includes("20020101", "20030101")
    Exclusive Rangetitle:{Aida TO Carmen}c.Title.Between("Aida", "Carmen")
    Boostingjakarta^4 apachec.Title.Match("jakarta".Boost(4), apache)
    Boolean Or"jakarta apache" OR jakartawhere c.Match("jakarta apache") || c.Match("jakarta")
    Boolean And"jakarta apache" AND "Apache Lucene"where c.Match("jakarta apache") && c.Match("Apache Lucene")
    Boolean Not"jakarta apache" NOT "Apache Lucene"where c.Match("jakarta apache") && !c.Match("Apache Lucene")
    Required+jakarta lucenec.Title.Match("jakarta".Require(), "lucene")
    Grouping(jakarta OR apache) AND websitewhere (c.Title == "jakarta" || c.Title == "apache") && (c.Title == "website")
    Native Syntaxie. title:{+return +"pink panther")c.Search("title:(return +\"pink panther\"")
    -------长沙程序员技术交流QQ群:428755207-------
  • 相关阅读:
    前端程序员应该知道的 15 个 jQuery 小技巧
    UML 序列图详解
    UML实践详细经典教程----用例图、顺序图、状态图、类图、包图、协作图
    浅谈UML的概念和模型之UML九种图
    [TFS教程]TFS: Get Command
    cmd下PUSHD和POPD命令使用说明
    IIS 7.0的集成模式和经典模式
    sql日期格式化
    VS2010自定义添加创建者、创建时间等个人信息新建文件模版
    瞎打一波
  • 原文地址:https://www.cnblogs.com/qq4004229/p/2085112.html
Copyright © 2011-2022 走看看