Comments (10)
Sorry for the delayed response. There have been plenty of bug fixes since 0.9.0 and current release is 1.6.2. I'm not going to back port any fixes so please upgrade and let me know if you still have problems.
from klondike.
Thanks for the response! I updated, and unfortunately, the same issue is still occurring. The stack trace is the same in the error log.
from klondike.
Thanks for testing again. If you don't mind, could you also try the build from https://ci.appveyor.com/project/chriseldredge/klondike/build/artifacts?
That's going to be the next release when I get around to finishing it up.
Some LINQ / Lucene stuff has been fixed recently.
from klondike.
OK, I updated to the build you linked to. This time, I get a different error:
<?xml version="1.0" encoding="utf-8"?>
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code />
<m:message xml:lang="en-US">The query specified in the URI is not valid. Only ordering by properties is supported for non-primitive collections. Expressions are not supported.</m:message>
<m:innererror>
<m:message>Only ordering by properties is supported for non-primitive collections. Expressions are not supported.</m:message>
<m:type>Microsoft.Data.OData.ODataException</m:type>
<m:stacktrace> at System.Web.Http.OData.Query.OrderByPropertyNode..ctor(OrderByClause orderByClause)
at System.Web.Http.OData.Query.OrderByNode.CreateCollection(OrderByClause orderByClause)
at System.Web.Http.OData.Query.OrderByQueryOption.get_OrderByNodes()
at System.Web.Http.OData.Query.OrderByQueryOption.ApplyToCore(IQueryable query, ODataQuerySettings querySettings)
at System.Web.Http.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)
at System.Web.Http.OData.EnableQueryAttribute.ExecuteQuery(Object response, HttpRequestMessage request, HttpActionDescriptor actionDescriptor)
at System.Web.Http.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)</m:stacktrace>
</m:innererror>
</m:error>
from klondike.
Okay, I'm just noticing that the $orderby
is:
(DownloadCount > 300) and
(substringof('foo',Title) or
substringof('foo',Id)) desc,
DownloadCount desc
Evidently WebApi OData does not support expressions like this in an ordering clause. There's not much I can do about this.
If you explain what this is trying to accomplish I may be able to suggest an alternate approach.
from klondike.
By the way, even if OData allowed that, the underlying LINQ implementation (Lucene.Net.Linq) will not, because Lucene.Net only supports sorting by indexed fields without additional logic.
Incidentally, Klondike already boosts matches in Id or Title above matches in other fields, and boosts packages with higher download counts, so omitting the $orderby
parameter may return results in an acceptable order.
from klondike.
Ah, very interesting. For context, this is the query generated by Linqpad's built in NuGet browser. The VS NuGet extension does not seem to have this problem. Thanks for looking into this!
from klondike.
I was having the same problem, also from Linqpad.
Problem goes away if you change the 'Sort By' column in linqpad to something other than 'relevance', which presumably then generates a simpler (or at least lucene-compliant) order by in the odata.
from klondike.
Has someone reported this issue to the Linqpad support team? I have a feeling this type of ordering clause, even if it works with NuGet Gallery today, is non-standard and likely to cause problems. I would argue that Linqpad should not be trying to influence the order of results in such a complicated way and that the server that hosts the packages is probably better informed about the relevance of fuzzy search results.
from klondike.
Yes, I raised a bug with Linqpad support. But I'll forward your comments to him too.
from klondike.
Related Issues (20)
- Think I'm missing an installation step? HOT 3
- Nuget.exe push behaving differently pushing to Klondike v2.1.1 after upgrade from v.1.6.2 HOT 4
- "No symbol packages have been pushed to Klondike" message erroneously displayed on ui? HOT 1
- Klondike on Mono handles only 1-5 requests and then stop answering HOT 1
- Klondike won't show package unless you specify "all versions" HOT 2
- Symbols are not loaded HOT 6
- No symbol artifacts downloaded on nuget restore HOT 2
- The feed lists package... but multiple attempts to download the nupkg have failed.
- Can't run this from source - Trying to debug 500 internal server error HOT 1
- npm install fails - git://github.com/chriseldredge/broccoli-msbuild.git missing
- localhost:8080/nuget 404 not found
- Set up initial admin user on remote server (docker) HOT 1
- Package is not immutable HOT 4
- Turn off parts of UI
- Blurb for visitors
- '5.5.1+fd2f920875c33464efb4b5ac366d8b8a83239dc0' is not a valid version string
- dependency error when upload nuget contain netstandard2.1 dll
- Getting XML error when trying to install package on VS 2017 HOT 1
- Modifying the Getting Started info
- The API page has no menu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klondike.