How to search through uploaded documents, Asp.net mvc? - sql-server

I am making a website where users can upload documents and search also a search functionality to find documents. My question is, how do i add a search functionality that searches not only the title of the document but also the document itself.
Ex.
Title: Reaction to The Perl
Text: {Whole Document}
If we search for 'Kino' (Which is appears in {Whole Document}), this document should show up as a result to the search.
Edit:
Currently I have them uploaded to a folder on the system and the database just contains a title and a link to the file. I have not implemented the search functionality yet.
Also I am using asp.net mvc, and sql server, if that matters.

You could use Lucene.Net to implement the search functionality (available for download from NuGet). You just need to add the documents and fields to a search index and then execute the search through the API.
I find this tutorial for Lucene.Net a useful example.

Related

Full Text search of content of a pdf file stored in database MVC

I am working with an ASP.NET MVC project running on the .NET Framework 4.7.2. I have a database of some pdf documents and a related column description. I want to perform full text Searching in the database so the text in the description column as well as the text of the PDF documents stored in the database are searched for that string value and make a list of all the items (documents and other data that matches the search) return a list.
I searched for this but this made me more confused about indexing and paging in search and How I can perform a search in the database to retrieve the list of matched documents through document content.

Get the document data based on Title/document name

We have uploaded pdf file into Discovery service and using smart documentation we have marked the data as title and text/table..etc and spitted the pdf file into multiple pdf files based on title.
Now we want to get the data based on title/pdf filename and display the data.
Please let us know how we can get the pdf files and its data based on title.
While building queries in search for documents use Discovery Query Language instead of natural language. In field select extracted_metadata.title or extracted_metadata.filename and choose the operator contains and provide the value. For more info follow the Build Queries

Apache Nutch Crawl Dynamic Products

Currently we are using Apache Solr as Search Engine and Apache Nutch as Crawler. Now we have created a site site which contains products which gets generated dynamically.
As current setup will search the content within content field, so whenever we are searching for dynamic Product, then its not coming in search results.
Can you please guide me how to crawl and index Dynamic Product on a Page to Apache Solr? Can we do this using Sitemap.xml, If yes then please suggest how?
Thanks!
One possible solution is this:
Step 1) Put the description of each dynamic product in its own page. e.g http://domain/product?id=xxx (or with more friendly url such as http://domain/product-x).
Step 2) You need a page or several pages that list urls of these products. The sitemap.xml you mentioned is one choice but a simple html page is also suffice. So, for instance, you can dynamically generate a page named products_list which contains entries like this: Product x.
Step 3) You should either add url of products_list page to your nutch seed file or include a link to it in one of already crawling pages.

Searching information on pages created by views in Drupal 7

I'm using Drupal Commerce and creating pages with those products through views.
I would like to be able to search for any of the products and any of their descriptions and have the search results link to those views pages.
I'm currently exploring Search by Page and it's kind of working but it only searches on the page title and doesn't search substrings. I'm downloading and trying everything! Maybe i just need the right combo.
Has anyone dealt with this?
Thanks!
You can use the option "Search: search terms" from filter settings. For this option you have to enable core Search module.
Its searches from Title, Description also we can set "contains" criteria to search any matched data.
Cheers!!!

Creating simple search for Google App Engine

Is there any simple way to create search for Google App Engine for specific datastore table.
Just want to create basic text search for this.
If you want full-text search over a Text field in a Model, try something like Bill Katz's SearchableModel.
You can only do a full-text search not partials.
What you could do if you really need to do a simple search and depending on how many records you are going to have, is create a cron job that creates a blobstore with the table key and the field you want to search. Then just use the blobstore for your searches. Remove the lines that dont have the search field and display the field as the result , with the key as your link to the relevant data.
Google App Engine - Full Text Search
Use Query Filter to search by specific column
See documentation here

Resources