locked
SQL full text indexing / indexed view? RRS feed

  • Question

  • Can sql full text index a text column on an indexed view?
    Wednesday, September 25, 2013 2:32 PM

Answers

  • Hello,

    For a full text index a unique index as reference is required, so if there is a unique index on the view then you can create also a full text index on it.

    See also CREATE FULLTEXT INDEX (Transact-SQL) => Arguments:

    table_name                                

    Is the name of the table or indexed view that contains the column or columns included in the full-text index.

    It documented and fully supported.


    Olaf Helper

    [ Blog] [ Xing] [ MVP]


    • Edited by Olaf HelperMVP Wednesday, September 25, 2013 4:26 PM
    • Proposed as answer by Allen Li - MSFT Monday, September 30, 2013 6:17 AM
    • Marked as answer by scott_m Monday, September 30, 2013 12:12 PM
    Wednesday, September 25, 2013 4:26 PM

All replies

  • Hello,

    For a full text index a unique index as reference is required, so if there is a unique index on the view then you can create also a full text index on it.

    See also CREATE FULLTEXT INDEX (Transact-SQL) => Arguments:

    table_name                                

    Is the name of the table or indexed view that contains the column or columns included in the full-text index.

    It documented and fully supported.


    Olaf Helper

    [ Blog] [ Xing] [ MVP]


    • Edited by Olaf HelperMVP Wednesday, September 25, 2013 4:26 PM
    • Proposed as answer by Allen Li - MSFT Monday, September 30, 2013 6:17 AM
    • Marked as answer by scott_m Monday, September 30, 2013 12:12 PM
    Wednesday, September 25, 2013 4:26 PM
  • Hello,

    For a full text index a unique index as reference is required, so if there is a unique index on the view then you can create also a full text index on it.

    See also CREATE FULLTEXT INDEX (Transact-SQL) => Arguments:

    table_name                                

    Is the name of the table or indexed view that contains the column or columns included in the full-text index.

    It documented and fully supported.


    Olaf Helper

    [ Blog] [ Xing] [ MVP]


    Olaf, does it matter if the index on the view is clustered or non-clustered?  Is one more preferable?

    scott

    Saturday, November 2, 2013 8:58 PM