Full Text Indexes

  • How to search on more than one field with full-text indexes?

    I used that:

    SELECT TOP 10 * FROM TBL_TOC WHERE

    CONTAINS(TBL_TOC.TEXT, '"journal*"') AND CONTAINS(TBL_TOC.AUTH, '"Carl*"')

    But it's very slow...

    Thanks

    Sharon

  • I think your issue is the same as your other post:

    http://www.sqlservercentral.com/Forums/FindPost1234607.aspx

    -- Gianluca Sartori

  • Sharon-328725 (1/12/2012)


    How to search on more than one field with full-text indexes?

    I used that:

    SELECT TOP 10 * FROM TBL_TOC WHERE

    CONTAINS(TBL_TOC.TEXT, '"journal*"') AND CONTAINS(TBL_TOC.AUTH, '"Carl*"')

    But it's very slow...

    Thanks

    Sharon

    Actually you can use: CONTAINS(TBL_TOC.TEXT, '"journal*"' AND '"Carl*"') syntax.

    But if your table is big be ready to wait for a long time.

    BTW, Sql Server 2008 can be your solution as FTS there is better (especially if your WHERE clause

    comprises extra, not FTS conditions)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply