Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Oct 2010 at 16:01 UTC
Updated:
19 Jan 2011 at 22:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
robertdouglass commentedYes. Can we do these things in the 6.x-2.x branch? It already has a much more flexible API for dealing with CCK.
Comment #2
pwolanin commentedstarter patch.
Note I used sint by default since I assume people might rely on the sort-missing-last functionality. Could be tint instead, however.
Comment #3
pwolanin commentedcommitted my patch to 6.x-1.x. Here's a starter patch for 6.x-2.x
Comment #4
davidwhthomas commentedHere's a
hook_apachesolr_cck_fields_alterimplementation I used to successfully add facets for integer fields for apachesolr version = "6.x-1.2"In this case it was for real estate listings to provide 'Bedrooms' and 'Bathrooms' facets.
You'll also then need to enable the facets at: /admin/settings/apachesolr/enabled-filters
HTH,
DT
Comment #5
davidwhthomas commentedAnd one more update, here's what I needed to do to get integer field facets working with version = "6.x-2.0-beta3"
I see the new code has facet info for some integer fields, but not the default 'number' one.
So perhaps the other widget types aren't needed here.
Comment #6
joetsuihk commentedbelow is invalid, sorry
the patch #3 on 6.x-2.x-beta3 do not add integer with widget "textfield"
It only add widget "select" or "checkbox"
Comment #7
joetsuihk commentedComment #8
pwolanin commentedWhich patch are you saying is RTBC?
Comment #9
joetsuihk commentedpatch #3 tested on 6.x-beta3.
I have no idea what #5 is talking about, but i can have filters on integers value that use dropdown/checkbox as widget.
Comment #10
pwolanin commentedcommitted to 6.x-2.x