简体   繁体   中英

Using SQL Server Fulltext Search with a Union View

I have a view which combines two tables via UNION ALL . The view is also schemabound, if that matters ( WITH SCHEMABINDING ).

Is it possible to enable fulltext search on this view? I understand that Fulltext Search requires a unique index, but I can't create it because of UNION .

Is there another way to make Fulltext Search work on the view?

You could always fulltext search on the component table, and then use other data from that table (id) to get the row back out of the UNION. Unless, of course, what you're fulltext searching on is composited out of the component rows, in which case this won't help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM