It's a hack, but you can do it by making two facets on the same
property.  Exhibit will "and" between the selections on the two facets.

Luigi Spagnolo wrote:
> Hello, I am new to Exhibit.
> I ask you if there is a way to obtain an "AND" between values
> belonging to the same facet.
>
> Suppose that my items have a property that admits multiple values,
> e.g. see the propery "artists" here:
>          {   type :                  "Museum",
>             label :                 "Louvre",
>             artists:                ["Leonardo Da Vinci" , "Jacques-
> Louis David"]
>         },
>          {   type :                  "Museum",
>             label :                 "Uffizi",
>             artists:                ["Leonardo Da Vinci" , "Raffaello
> Sanzio"]
>         },
>         {   type :                  "Museum",
>             label :                 "Prado",
>             artists:                ["Francisco Goya" , "Diego
> Velàsquez"]
>         }
>
> If I create a facet for filtering museums by artists shown
>
>        <div ex:role="facet" ex:expression=".artists"
> ex:facetLabel="Artists"></div>
>
> How I can search for museums that show artworks by  "Leonardo Da
> Vinci" AND "Jacques-Louis David"?
>
> If I select both "Leonardo Da Vinci" and "Jacques-Louis David" in
> Exhibit, I actually obtain a list of museums that show artworks by
> "Leonardo Da Vinci" OR "Jacques-Louis David". In my example I would
> get both "Louvre" and "Uffizi", while my desired result would be
> "Louvre" only.
>
> How I can obtain this in Exhibit? Is there a parameter I can set, or
> do I have to modify the code?
>
> Thank you in advance
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to simile-widgets@googlegroups.com
To unsubscribe from this group, send email to 
simile-widgets+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to