Giter VIP home page Giter VIP logo

Comments (2)

Careyjmac avatar Careyjmac commented on May 24, 2024

I believe the "filter" list as implemented actually uses the faceting feature of Azure Cognitive Search, so you would need to change the metadata field in your index to be facetable in order for this to work. References:

new SearchField("entities", SearchFieldDataType.Collection(SearchFieldDataType.String)) { IsSearchable = false, IsFilterable = true, IsHidden = false, IsSortable = false, IsFacetable = true },

from azuresearch_jfk_files.

Emix26 avatar Emix26 commented on May 24, 2024

Thanks for your answer. Indeed, I think so too. But to filter on the file path, I added this search field:

new SearchField("filePath", SearchFieldDataType.String) { IsSearchable = false, IsFilterable = true, IsHidden = false, IsSortable = false, IsFacetable = true  },

This seems to work as the filepaths are properly displayed on the left pannel. However, when I click on one of the checkbox, nothing happens (the checkboxes disappear and the result of the query as well). This lead me to believe that there is an issue with the fact that the filter expects a list or a collection of string, while I'm now passing only one string. Is there a way to filter on that string alone ? The behaviour that I would like is that when I click on the checkbox only the result of that document are shown.

from azuresearch_jfk_files.

Related Issues (20)

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.