I am working on an indexer database that index the web, for a given search query I used to make a call to stored procedure then add the results from java
I am now trying to make it all in sql
I send multiple words to the stored procedure but it didn't get results. When using it with each word only it get normal results!
create procedure searchDictionary
@words nvarchar(max)
as
begin
select distinct
WebPage.Address, WebPage.Title
from
WebPage
inner join
Paragraph on WebPage.ID = pageId
inner join
Dictionary on Dictionary.Id = keyword_id
where
Word in (@words);
end
exec searchDictionary N'protests, ukraine'