solr - Nested facet search -


I have the following documents in Solr:

  (1) {date: "2013->  
01-01", person: "John", activity: "swimming "} & Lt; - Date of the date / year (2) {date: "2014-01-02", person: "John", activity: "cycling"} (3) {date: "2014-01-03", person: "John Activity: "swimming"} (5) {date: "2014-01-02", person: "jogging", (4) {date: "2014-01-01", person: "Paul", activity: "Paul", activity: "cycling"} (6) {date: "2014-01-03", person: "Paul" activity ":" swimming "} (8) {date:" 2014-01-02 ", Person: "jogging"} (7) {date: "2014-01-01", person: "ringo", activity: "ringo", activity: "cycling"} (9) {date: "2014-01-03 ", Person:" Ringo ", Motav Method: "Ascent"} // <- View Activity <
 

Assume all areas as indexed and stored .

Now I want to find people who have swimming and cycling but no jogging (all in 2014 ). The correct answer to the course should be rango . I think the solution would be to search a nested aspect, but I Not sure and I do not know How that

Edit: OK, I now understand ... with 'swimming and cycling' You mean Lucin and Of course this is not valid

After that, about this, you can ask questions for activity: (swimming) and date: [2014-01-01T00: 00: 00.000Z 2014 -12-31 T 23: 59: 99.999 Z] , and use the following facetting: facet = on & facet.query = Activity: Cycling and facet.query = Activity: Jogging And just keep those aspects that are in the cycling aspect but not in the jogging aspect.

The client side code is slightly needed but what should work?


Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

scala - Play Framework - how to bind form to a session field -