SolrNet: How to use a custom searchcomponent (and its result) from solrnet

On a project I'm working on we interact with Solr using SolrNet. We have a custom search component in solr, activated by adding join=true to the query. (I do this in solrnet through the ExtraParams of the CommonQueryOptions).In the response there is a custom <lst name="joinresult"> after the normal results which I want to parse, and return to the caller.Now I don't know where I can cleanly insert a custom ResponseParser in the SolrNet pipeline.What have I done so far:Created a JoinResult<T> class to hold my custom resultCreated a Jo...Read more

Solrnet date conversion issue

We are using SolrNet API to Index and Search a set of documents which contains three date fields: Date1, Date2, Date3. The C# class has the following definitions for the three fieldspublic DateTime? Date1{ get; set; }public DateTime? Date2{ get; set; }public DateTime? Date3{ get; set; }The Solr schema definition is as follows:<field name="Date1" type="date" indexed="false" stored="true" required="false"/><field name="Date2" type="date" indexed="false" stored="true" required="false"/><field name="Date3" type="date" indexed="false"...Read more

Solrnet Paging - How do I set the Start and Rows parameters from .NET?

I'm a Certified .NET developer who is responsible for implementing a Solr search via Solrnet. I'm close to having it where I need it, yet far from seeing the performance my client needs.Normally, I wouldn't write, but I'm not finding much documentation. Can you offer some good Solrnet resources? Here's my problem:How do I restrict the results set (documents) to say 25? I've limited my data grid to 25 results per page, but it's still very slow when even 1000 results come back. I'm guessing this is because Solr is actually returning all 1000 ...Read more

SolrNet - Customizing the Schema

I am trying to implement SolrNet to be the search engine for our application.I wanted to customize the SchemaXml before uploading XML Docs which will be the website sitemap.xmlThe Sample SiteMapXML looks like this<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><url> <loc>http://www.google.com</loc> <lastmod>1900-01-01T00:00</lastmod> <changefr...Read more

solrnet - SOLR dataimport 404 Error

I m facing Problem with Dataimport in Solr. if i call this Linkhttp://localhost:8983/solr/dataimport?command=full-import&clean=falseshowing Error HTTP ERROR 404Problem accessing /solr/dataimport. Reason:NOT_FOUNDI have follow Same as per Solr suggestion with this linkhttp://wiki.apache.org/solr/DataImportHandlerMy Configuration Looks like:-1. in solrconfig.xml < requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> < lst name="defaults"> <str name="config">data-config.xml&l...Read more

SolrNet Error - Unable to read data from the transport connection: The connection was closed

I'm trying to search a Solr server from a webservice using SolrNet. I set up the connection in the global.asax: Startup.Init<ApartmentDoc>("http://192.168.0.100:8080/solr/");I'm trying to query the server in a class file via: var solr = ServiceLocator.Current.GetInstance<ISolrOperations<ApartmentDoc>>();var apartments = solr.Query(SolrQuery.All, new QueryOptions{ ExtraParams = new Dictionary<string, string> { { "defType", "edismax" } , { "fl", "*,score,_dist_:geodist() " } , ...Read more

How to install SOLRNET

Hi I am very new to SOLRNET.Can you please explain where I can get the software of SOLRNET,how to install it.Lucene in java has a port for .NEt right.So is this a port to Solr in java???Thank you...Read more

solrnet - The remote server returned an error: (400) Bad Request. when add docs to index

when i add docs to index, the page returns 400 bad request. And the solr has been start up and can get data from database. So i need put the data into index. However, it's failed always.1) Here is code snippet of SolrBaseRepository /// <summary> /// Base repository for Solr /// </summary> public class SolrBaseRepository { /// <summary> /// New instance of Solr /// </summary> /// <typeparam name="T">Specific type</typeparam> public class Instance<T> { ...Read more

solrnet - Solr stops responding (or slows down to molasses)...(Solr newbie)

Running multi-core Solr under Tomcat 6.0 /Win 2008 Server and ASP.NET queries via SolrNet. One of the cores is huge i.e. ~25 million documents (~20 GB disk-space) and several fields. The other 3 cores are much smaller (few gigs each).After a couple of queries to the large index, Solr slows down dramatically and stops responding i.e. can't even open admin console. If I restart tomcat, things again works ok for a few more queries and then molasses to stop. I have checked the machine RAM and processor usage, both are <50% utilization.I am not s...Read more

solrnet - Duplicates in Solr index - items added twice or more times

Consider you have a Solr index with approx. 20 Million items. When you index these items they are added to the index in batches.Approx 5 % of all these items are indexed twice or more times, therefore causing a duplicates problem.If you check the log, you can actually see these items are indeed added twice (or more). Often with an interval of 2-3 minutes between them, and other items between them too.The web server which triggers the indexing is in a load balanced environment (2 web servers). However, the web server who does the actual indexing...Read more

facets - Faceted Search with Solrnet

Loving Solrnet, it is great.I have successfully created a Solrnet search that returns facets. articles = solr.Query(new SolrQuery(sQuery), new QueryOptions { Facet = new FacetParameters { Queries = new[] { new SolrFacetFieldQuery("content_type") } }, Highlight = new HighlightingParameters { Fields = new[] { "description" }, Snippets = 4, MaxAnalyzedChars = 10000, }, Rows = sr.recordsPerPage, Start = pageI, });Now I need to perform a Solrnet sea...Read more

Not able to get TermVector results properly in SolrNet

I'm not able to get TermVector results properly thru SolrNet. I tried with the following code.QueryOptions options = new QueryOptions(){ OrderBy = new[] { new SortOrder("markupId", Order.ASC) }, TermVector = new TermVectorParameters { Fields = new[] { "text" }, Options = TermVectorParameterOptions.All }};var results = SolrMarkupCore.Query(query, options);foreach (var docVectorResult in results.TermVectorResults){ foreach (var vectorResult in docVectorResult.TermVector) System.Diagnostics.Debug.Print(vectorRes...Read more

solrnet - How we changes standard query handler

I am using solrnet I have created a new handler and want to change standard query handler "select" to "new" without using any extra parameter like "qt" or defType.Currently "http://localhost:8080/solr/select?q=:"Want"http://localhost:8080/solr/new?q=:"Please advise me this is possible or not?...Read more