Hi All,
I have downloaded the demo application from arachnode.net website, I want to search keyword in a single URL that the user will input. Can anyone suggest me the change required in demo application so that i can give harcoded input for URL in the code and get results for the keyword from URL.
Any help will be appreciated.
Like this: https://search.arachnode.net/Search.aspx?query=absoluteuri:www.nbc.com/today%20share&discoveryType=WebPage&pageNumber=1&pageSize=10&shouldDocumentsBeClustered=1
Mike
For best service when you require assistance:
Skype: arachnodedotnet
As per your suggestion, I hard coded value for Query
protected void uxBtnSearch_Click(object sender, EventArgs e)
{
string t1 = "absoluteuri:www.nbc.com/today share";
if (uxTbQuery.Text != string.Empty)
if (Request.QueryString["shouldDocumentsBeClustered"] == "0")
Response.Redirect(Request.Url.LocalPath + "?query=" + t1 + "&discoveryType=" + uxRblDiscoveryType.SelectedValue + "&pageNumber=1&pageSize=" + WebSettings.PageSize + "&shouldDocumentsBeClustered=0", true);
}
else
Response.Redirect(Request.Url.LocalPath + "?query=" + t1 + "&discoveryType=" + uxRblDiscoveryType.SelectedValue + "&pageNumber=1&pageSize=" + WebSettings.PageSize + "&shouldDocumentsBeClustered=1", true);
Final Url look like this
http://localhost:56830/Search.aspx?query=absoluteuri:www.nbc.com/today%20share&discoveryType=WebPage&pageNumber=1&pageSize=10&shouldDocumentsBeClustered=1
Still getting no search results
The point of "absoluteuri:www.nbc.com/today share" was to illustrate you can instruct Lucene.NET to search a specific AbsoluteUri.
What you did instead was force a query, so that no matter what you search for you will likely never get results, unless you crawled nbc.com/today and wanted to search for 'share'.
Use the Lucene.NET syntax - there is no need to modify the code.
Or, if you really want to modify the code, don't add 'share' and use the actual AbsoluteUri you want to use - I am guessing you didn't want to search nbc.com?