I have a issue designing am asp.net site.
The problem is that I want to have a search component that searches article titles.
Also I want to catch closely words.
Since there are tens of thousands of articles I cannot run SQL directly.
Can you give me a hint... or some good articles how to design a search component?
Thanks.
Why not use MS Search Server Express Edition to index your contents and then use MS Search Server API to query and display results? This question has some information about it if you are interested.
Another alternative is to use Google to index and search your website for you using their custom search service:
http://www.google.com/cse/
The downside with this service is you get a bit less control over exactly what gets indexed on your pages, and can only search on terms directly visible on the pages, but the upside of course is you don't have to do much to get up and running.
Related
I need to present Word and PDF documents in a read-only preview, via an ASPX/HTML page to my internal users. In a related requirement, I need to present editable Word documents, via ab ASPX/HTML page, to parties outside of our network - effectively the public.
We cannot rely upon Word or Adobe-type PDF plugins being available on the destination PC.
Can anyone suggest a way to do this?
Edit - For clarity, the document/data would ideally stay on our own servers.
What about using Google Docs API? You could use either their word-like doc or a form to get the data you need, and then present that internally.
Not sure if this meets all of your requirements, or is an available option.
For our company, we have a few tools that utilize Google Docs. We upload data dynamically to them for specific needs.
Based on your requirements, maybe it's best to just write your own. I haven't created a Rich Text Editor. But it looks like there are quite a few tutorials online. Here is a basic tutorial for a rich text editor. It's using javascript, HTML, & CSS. If you prefer to not use js, then you may need to look for other tutorials.
This isn't the most glamorous solution, as it looks like the users view would be HTML. I'd think you could have it updating dynamically off to the side with an actual rich text view (similar to how Stack Overflow has theirs below an answer or question being written).
Update
Over the weekend I was exploring HTML5's contenteditable attribute, I came across an editor that builds off of that called Aloha Editor. It's a WYSIWYG type editor. But if that's something that you desire for your clients, than this would probably be a pretty simple integration. I have yet to use it, but it seems like it would be a great fit - if you decide to go the route of building your own editor.
You could use the Zoho API or, if you need to keep all data on your own servers and validated clients at all times, you could try the Aspose components.
If you're interested to provide documents in a view-only way then you can try GroupDocs as well: http://groupdocs.com/. They offer viewers for different file types which you can add to your website very easily: http://groupdocs.com/apps/viewer.
Since you need to keep data on your own server, aceoffix can be one of your alternative. It is a plugin installed on your own server and save all data on your server too.
I'm looking to implement search functionality in an ASP.NET MVC site.
The site is driven by a CMS. The users can add widgets to the page with meetings, documents, etc.
So the whole site is fully dynamic.
As I see it, there are 2 options:
Search all possible content directly, and then figure out what results are coupled to pages. Or the other way around, figure out what the content of a page is.
Load or construct all available pages, and make sure the content can be searched. So, basically crawling and indexing my own content.
Maybe other?
I'm not sure what the best implementation would be, all experiences and directions are welcome!
I'm not really looking for Solr or Lucene based solutions. This needs to be a simple implementation, just running a LIKE on the correct rows of the DB is suffictient.
I'm working on have a property listing asp.NET website and the current search function is pretty crappy. I want to know if I can use the Google Custom Search API to extract the results but still present them in the same way there are now (comprehensive listing items with pricing, images, etc. Here's the current look: http://temporadaplus.com/Aluguel-Por-Temporada.aspx?pais=Brasil ). Each listing item is created via a .NET itemtype. SO basically all I need is to know how to go about using Google's much better results without altering anything visually.
I came across this question here but I am not sure its exactly what I;m looking for. Any ideas or comments are appreciated.
At every question posting on websites like ASP.NET and Stack Overflow there's an option to select tags for questions. These tags are from a database, I need exactly the same solution fir my website. Can anyone suggest some an example?
I am using ASP.NET with a SQL Server database.
This may be the thing you wanted and then you can use jqueryUI autocomplete to achieve the autocomplete behavior as suggested by Kevin B
for storing tags in database definitely you have to manage it in database based on TAG -User relationship
While the server-side code is PHP, this tutorial shows you how you can build your own jQuery powered tag cloud that gets its data from the server (either the database or some other source).
the best solution present on internet ,exactly I wanted
https://github.com/harindaka/ASPTokenInput
Its uses the jqueryui API but it modifies it to fit perfectly to be able to adjust with C# code , to get the text on fly it process a url of an aspx page like a web service and retrieves the results from db on every key down event . you can code every thing you want in suggestion their ItemList.aspx.cs code and there you go , perfect harmony of C# code with power of Jquery
I did lot of R & D to implement website internal search in asp.net.
I have found a good article in code project
http://www.codeproject.com/KB/applications/SearchDotnet.aspx
It has some limitations
Search with special characters is not working.
Pdf and word documents are not searching.
Not able to high light the searched text.
If I am implementing this in master page then child title is not displayed in result page.
Requirement:
I need to implement search result should be like this http://www.google.com/search?q=internal+search+in+asp.net&sourceid=ie7&rls=com.microsoft:en-US&ie=utf8&oe=utf8
In description the search text must be highlighted.
Note: I need to implement this with coding not any 3rd party tool (I know lots of 3rd party website which do free hosting but they will post there adds and logo). Moreover i dont want to use any database for this internal searching
Please suggested and provide me some good links.
You could look at using Lucene.Net (http://lucene.apache.org/lucene.net/) to index your site. This is a tool but it is open source and requires you to do some of the work so I'm not sure if this meets your criteria or not.
For an example of how it works you can try searching on their site:)
Given your requirements there aren't too many options.
The only one I can think of is using Microsoft Indexing Service. Here is an example for using that to search a website in .net
https://web.archive.org/web/20211020134956/https://www.4guysfromrolla.com/articles/033005-1.aspx
If you have content in a database you could use Microsoft Full Text Indexing to create a search table and go from there.