Giter Site home page Giter Site logo

sleet.search's Introduction

Sleet.Search

An example of external search for Sleet static feeds.

Update the static feed to point to this service and pass the static search resource url. When called by NuGet this azure function will dynamically filter the static search results based on the query and prerelease filters.

Setting an external search provider in Sleet 4.0.0

Set externalsearch to the url for your instance of Sleet.Search along with the url of the feed's static search resource.

For the example feed: https://nuget.blob.core.windows.net/packages/index.json the search resource is: https://nuget.blob.core.windows.net/packages/search/query

Sleet.Search uses the route search/source/{source}/query If the search is hosted on https://example.org/ then url to add to sleet is: https://example.org/search/source/https%3A%2F%2Fnuget.blob.core.windows.net%2Fpackages%2Fsearch%2Fquery/query

Sleet command

feed-settings --set "externalsearch:https://example.org/search/source/https%3A%2F%2Fnuget.blob.core.windows.net%2Fpackages%2Fsearch%2Fquery/query"

NuGet client does not support query parameters on search urls which is why the parameter here must be encoded and passed in the url itself.

Customizing your own search

Instead of passing the static search resource in the url you can modify your own instance of Sleet.Search and hardcode it to your feed to avoid these steps.

Further help and examples

sleet.search's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.