Solr Express
A simple and lightweight query .NET library for Solr, in a controlled, buildable and fail fast way.
Useful links
- Documentation
- NuGet Packages
- Solr
A simple and lightweight query .NET library for Solr, in a controlled, buildable and fail fast way.
When querying with solr-express i'm always running in a Aggregate exception. The aggregate exception itself contains the following message:
Unknown to resolve solr query request
Requested instruction:
http://localhost:8983/solr/collection/select
{
"params": {
"echoParams": "none",
"wt": "json",
"indent": "off",
"defType": "edismax",
"q.alt": "*:*",
"df": "id"
},
"query": "*:*",
"sort": "score desc",
"fields": [
"*,score"
],
"limit": 10,
"offset": 0
}
Server message:
The remote server returned an error:
(500) null:org.apache.solr.common.SolrException: Unexpected method type: GET-X
at org.apache.solr.servlet.HttpSolrCall.remoteQuery(HttpSolrCall.java:548)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:448)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:296)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1691)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Unknown Source)
Running this query with postman works fine the query is build up like this:
IEnumerable<SolrDocument> docs;
this.documentCollection.Select().Execute().Document(out docs);
What am i doing wrong? Everything is correctly initialized and updating (indexing) files works..
Running with these nuget packages:
"SolrExpress.Core": "4.2.1",
"SolrExpress.Solr5": "4.2.1"
Using Solr: 6.4.1 And using dotnet core:
$ dotnet --info
.NET Command Line Tools (1.0.0-preview2-1-003177)
Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
I've also downgraded from Solr 6.4 to 5.5.0 and still get the notice:
The remote server returned an error: (501) Method GET-X is not defined in RFC 2068 and is not supported by the Servlet API
What is this mysterious GET-X
method? i've never heard of it while reading the RFC i saw it's an extension method? (please explain) RFC 2068
I've added the following question at stackoverflow
How can I project data in solr5?
I see there is FieldList parameter in solr4 that adds fl to the query but I don't see it in solr5
Is it missing or is there another way?
Is there a way to specify the facet prefix for a facet field? See: https://cwiki.apache.org/confluence/display/solr/Faceting#Faceting-Thefacet.prefixParameter
Btw. @diegobrum great work. Thanks for all your efforts.
What? Drop class SystemParameter and add default parameters in SolrSearch class, Execute method.
Why? Avoid errors like (#174)
What it´s necessary? Create below parameters:
@diegobrum:
Problem:
Work around:
Fix (?): Are there plans to support .NET Core 1.0.1 (1.1) and higher or you should consider it soon.
Thanks
Hi,
We released site to production and we have hangs most probably caused by solr-express. I am investigating and I hope I will have more info soon.
Does solr express have any configurable timeout option?
Here's the Weekly Digest for solr-express/solr-express:
Last week, no issues were created.
Last week, no pull requests were created, updated or merged.
Last week there were no commits.
Last week there were no releases.
That's all for last week, please :eyes: Watch and :star: Star the repository solr-express/solr-express to receive next weekly updates. :smiley:
You can also view all Weekly Digests by clicking here.
Your Weekly Digest bot. :calendar:
Here's the Weekly Digest for solr-express/solr-express:
Last week, no issues were created.
Last week, no pull requests were created, updated or merged.
Last week there were no commits.
Last week there were no releases.
That's all for last week, please :eyes: Watch and :star: Star the repository solr-express/solr-express to receive next weekly updates. :smiley:
You can also view all Weekly Digests by clicking here.
Your Weekly Digest bot. :calendar:
Here's the Weekly Digest for solr-express/solr-express:
Last week 2 issues were created. Of these, 0 issues have been closed and 2 issues are still open.
:green_heart: #612 Bump Microsoft.Extensions.DependencyInjection from 1.1.1 to 3.1.6, by dependabot-preview[bot] :green_heart: #611 Bump SimpleInjector from 4.4.3 to 5.0.3, by dependabot-preview[bot]
Last week, 2 pull requests were created, updated or merged.
Last week, 2 pull requests were updated. :yellow_heart: #612 Bump Microsoft.Extensions.DependencyInjection from 1.1.1 to 3.1.6, by dependabot-preview[bot] :yellow_heart: #611 Bump SimpleInjector from 4.4.3 to 5.0.3, by dependabot-preview[bot]
Last week there were no commits.
Last week there were no releases.
That's all for last week, please :eyes: Watch and :star: Star the repository solr-express/solr-express to receive next weekly updates. :smiley:
You can also view all Weekly Digests by clicking here.
Your Weekly Digest bot. :calendar:
Here's the Weekly Digest for solr-express/solr-express:
Last week, no issues were created.
Last week, no pull requests were created, updated or merged.
Last week there were no commits.
Last week there were no releases.
That's all for last week, please :eyes: Watch and :star: Star the repository solr-express/solr-express to receive next weekly updates. :smiley:
You can also view all Weekly Digests by clicking here.
Your Weekly Digest bot. :calendar:
Here's the Weekly Digest for solr-express/solr-express:
Last week 1 issue was created. It is still open.
:green_heart: #608 Bump Moq from 4.10.1 to 4.14.5, by dependabot-preview[bot]
Last week, 1 pull request was created, updated or merged.
Last week, 1 pull request was updated. :yellow_heart: #608 Bump Moq from 4.10.1 to 4.14.5, by dependabot-preview[bot]
Last week there were no commits.
Last week there were no releases.
That's all for last week, please :eyes: Watch and :star: Star the repository solr-express/solr-express to receive next weekly updates. :smiley:
You can also view all Weekly Digests by clicking here.
Your Weekly Digest bot. :calendar:
Here's the Weekly Digest for solr-express/solr-express:
Last week 2 issues were created. Of these, 0 issues have been closed and 2 issues are still open.
:green_heart: #606 Bump SimpleInjector from 4.4.3 to 5.0.2, by dependabot-preview[bot] :green_heart: #605 Bump Moq from 4.10.1 to 4.14.4, by dependabot-preview[bot]
Last week, 2 pull requests were created, updated or merged.
Last week, 2 pull requests were updated. :yellow_heart: #606 Bump SimpleInjector from 4.4.3 to 5.0.2, by dependabot-preview[bot] :yellow_heart: #605 Bump Moq from 4.10.1 to 4.14.4, by dependabot-preview[bot]
Last week there were no commits.
Last week there were no releases.
That's all for last week, please :eyes: Watch and :star: Star the repository solr-express/solr-express to receive next weekly updates. :smiley:
You can also view all Weekly Digests by clicking here.
Your Weekly Digest bot. :calendar: