in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Full Text Search

Last post 08-28-2010 6:19 AM by ali_salami. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-26-2010 2:31 AM

    Full Text Search

    Hi

    Im ALI AL SALAMI 

    I write very desktop applications with SQlite and C# or VB.NET

    and I Understand that it's very nice

    but in full text search has problem 

    Table1 

    C1

    -----------------

    MySchool

    School

    OurSchool

     

    in sql server if you have  : MySchool and search 

    SELECT  *   FROM   Table1   WHERE   CONTAINS ( C1 , ' * School * ' )

    return for you all record that in C1 has MySchool , OurSchool and ...  too or Like this

    but in SQLite 

    SELECT  *   FROM   Table1   WHERE  C1  MATCH (  ' * School * ' )

    return only Shool

    please Help me !!

     

  • 08-27-2010 10:55 AM In reply to

    • Zalbor
    • Not Ranked
    • Joined on 08-27-2010
    • Posts 4

    Re: Full Text Search

     I'm not familliar with the "CONTAINS" word. Why not try this?

    SELECT * FROM Table1 WHERE C1 LIKE '%School%'

  • 08-27-2010 3:12 PM In reply to

    Re: Full Text Search

    SQLite Full Text Search only supports prefix wildcard, i.e.: you can write MATCH 'school*' but you can not write MATCH '*school'.
  • 08-28-2010 6:19 AM In reply to

    Re: Full Text Search

     ya i khow that but if you type

    ELECT  *   FROM   Table1   WHERE  C1  MATCH (  ' School * ' )

    too  result is same

    my question is why result in sql server and sqlite is defrence and sql server is better in answer???

Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems