-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support lucene search #101
Comments
Adding that search_for_artifacts only supports group:artifactId so it cannot be used. |
Sounds reasonable... think you could get a pull request together for this feature? |
Yes. I'll give it a shot. On Thu, Jul 24, 2014 at 4:58 PM, Josiah Kiehl (formerly @bluepojo) <
|
I made a commit on my fork jamlevi@d0711b3 It supports only gaecv coordinates and returns a big xml blob. To support all the permutations here, https://repository.sonatype.org/nexus-indexer-lucene-plugin/default/docs/path__lucene_search.html, I would have had to rewrite Artifact and I see that a "Refactor api big time" PR #72 is out there and open, so I decided to wait. I can certainly issue the PR for the couple methods added? |
Don't worry about that #72, its been a while and I don't think I'll ever find the time to fix it up. We would certainly accept a pull-request for this functionality, though. |
K, I fired the PR. Let me know if it needs anything. Also, I didn't really get how that map was used in lib/nexus_cli/tasks.rb, so it's basically a copy, edit, paste job. |
Does the PR support paging? I have a huge problem - I have to pull latest versions of all artifacts under a common groupId (400+ unique artifacts) without paging nexus returns the first 200 non-unique entries (multiple versions of the same artifatId). Any suggestions? The initial request would have a header stating how many results are out there: <searchNGResponse> |
Often, we need to get_latest_version so we call get_artifact_info and we do get the latest version - chronologically. But, what if I want the latest version on a branch and another branch has a newer version. The result returns the latest, but not lexically. Is there currently a way to do that? I don't see one, but it looks like the lucene search can do this if one passes a branch.* wildcard like this:
hxxps://your.nexus.here/nexus/service/local/lucene/search?g=com.mycompany&a=myartifact&repositoryId=releases&v=4.6.*
I think, to support this, I can just add a new artifact_task method like this ?
Thanks.
The text was updated successfully, but these errors were encountered: