Text in DB? (How to search a large amount of text?)

I have an ASP.Net/C# application with SQL Server 2014.

I created a table and in one of the columns, I save plain text. This is , for example, some pages text from a book. The column is varchar(max). This table has multiple rows.

In the ASP.Net application, I have a search button and user can enter a keyword and I search this table and find the text and display it  This works ....

But by saving large amount of text in the database, the size of the database grows. How can I go about doing this text search?

One idea that I thought of is to save the text in , for example, text files and then search the text files with iTextsharp maybe.

Any ideas?
LVL 8
CamilliaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technical NinjaCommented:
Hi Camillia,

Database search is always going to be faster than file based searching. And to simplify things for your scenario, you can use Full-Text Searching.

Read more about Full-Text Search here: https://docs.microsoft.com/en-us/sql/relational-databases/search/full-text-search?view=sql-server-2017

In case you want to use ASP.Net based Full-Text Search - which I will not recommend [In my opinion it is better to handle FTS at database level] then you can use http://www.sphinxsearch.com/downloads/current/.

Also I would like to understand what kind of database size we are looking at? Is it going to be in GBs? TBs?

Regards,
Chinmay.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CamilliaAuthor Commented:
Also I would like to understand what kind of database size we are looking at? Is it going to be in GBs? TBs?

GBs

I've used FullText Search once before. I don't know about saving all this text in the database. I worked on another project and we saved the chapter texts in the database, I think.

I'll think about it some more.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.