The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

ONTAINSTABLE for Full-Text Index Queries

Last post 06-06-2008, 6:38 PM by David.Parsons. 1 replies.
Sort Posts: Previous Next
  •  06-05-2008, 12:48 PM 9646

    ONTAINSTABLE for Full-Text Index Queries

    For performance and relevancy reasons (over 4 million rows in one database), we have always used CONTAINSTABLE for Full-Text Index queries. CONTAINSTABLE has the same functionality as CONTAINS but is used in the FROM clause of a query and offers the added ability to incorporate relevancy to the results. In performance benchmarks from MS, it has shown that CONTAINSTABLE is faster than CONTAINS for very large indexes. Currently, we are using esQueryType.StoredProcedure to perform our CONTAINSTABLE queries, but would like to be able to perform a query similar to the following in ES:

    SELECT [IndexedTable].IndexID,
     R.[RANK] + IndexedTable.IndexRank As FinalRank,
     [IndexedTable].IndexTitle,
     [IndexedTable].IndexURL,
     [IndexedTable].IndexSummary
    FROM [IndexedTable]
    INNER JOIN (SELECT [Key], [Rank] FROM CONTAINSTABLE([IndexedTable], IndexTitle, 'mykeyword', 5000)) R
    ON [IndexedTable].IndexID = R.[Key]
    ORDER BY FinalRank DESC

    I know that you have implemented CONTAINS (http://community.entityspaces.net/forums/thread/6421.aspx), but am curious if there is any plans for supporting CONTAINSTABLE?

  •  06-06-2008, 6:38 PM 9678 in reply to 9646

    Re: ONTAINSTABLE for Full-Text Index Queries

    I added CONTAINSTABLE support to our enhancement tracking list. That's not a guarantee that it will be added, or when, just that it's now on our radar. Wink
    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML