facets

In generated code, how to access the facets declared in the XSD file ?

Hi, What I thought was going to be a simple problem turns out to be quite a head scratcher. I am currently using JAXB 2 to generate code from an XSD on which I have no control. I need to access the constraints from the schemas so I can apply some logic and guard code when setting values in these objects. Validation in bulk simply will...

Ruby on Rails Thinking Sphinx facets

I have an application in which I need to implement the faceted search functionality on one of the fields of the associated models and it does not seem to be working. Here is a brief context: There are 3 models I am working on: 1. Product 2. Attributes 3. ProductAttributes. Please see the code spnippets below: class Product < ActiveReco...

C++ boost date format

Hi, I have a vector string of dates in the from "dd-mmm-yyyy" so for example todays date would be: std::string today("07-Sep-2010"); I'd like to use the date class in boost but to create a date object the constructor for date needs to be called as follows: date test(2010,Sep,07); Is there any easy/elegant way of passing da...

Facet Counts Issue when Using Dismax Query Parser in SOLR

I am retrieving facet counts against a specific column in my index and these look accurate. The query for retrieving these counts is also running a dismax search using the q param (against 4 columns in my index, 1 of which I am facet counting on as mentioned above). So far, so good. I show my search results, I show my facets and associa...

Developing custom facet calculations in SOLR

I'm looking into using Solr for a project where we have some specific faceting requirements. From what I've learned, Solr provides range-based facets, where Solr can provide facets of different value-ranges or date-ranges, e.i. field values are "grouped" and aggregated into different bins. I would like to do something similar, but I wan...

change facet field in drupals apache solr module

Hey! I have installed the apache solr module in drupal. I have the search page returning the facets. What I need to do is to change html given by the module of one of the facets. I want to change it from checkboxes to sliders (using jquery) I know how to create the sliders. What I don't know is how to change the html generated for the...