My current index:

define_index do
    indexes :name, :as => :name
    indexes concelho
    indexes freguesia
    indexes locality, :as => :locality, :facet => true
    indexes distrito, :facet => true
    indexes ideal_types(:name), :as => :ideal_type, :facet => true
    indexes food_types(:name), :as => :food_type, :facet => true

    has average_price_id
    has has_live_music
    has has_animation
    has has_beach
    has has_outside_tables
    has has_vista
    has smoking_types(:id), :as => :smoking_type_id

    has created_at

    # Collections for sorting
    has total_like, :as => :likes, :type => :integer
    has average_price(:position), :as => :average_price, :type
=> :integer

    set_property :min_prefix_len => 3
  end

Facet search. It includes portuguese words, all words which include
accented chars are just not displayed / indexed? Can't figure it out
if I'm doing something wrong

>> Restaurant.facets ""
=> {:locality=>{"Quinta do Alto das Areias"=>1, "Quinta do
Montezelo"=>1, "Ajuda"=>1, "Serra da Luz"=>3, "Braço de Prata"=>1,
"Chelas"=>1, "Campo de Ourique"=>1, "Santa Maria dos Olivais"=>1,
"Bairro Dona Leonor"=>1, "Quinta do Cartucho"=>1, "Alto da Ajuda"=>1,
"Quinta das Rosas"=>3, "Charneca"=>1, "Bairro do Menino de Deus"=>1,
"Olival do Rio"=>2, "Alvalade"=>2, "Bairro das Calvanas"=>1, "Fonte da
Pipa"=>1, "Bairro da Musgueira Sul"=>1, "Olivais Sul"=>1, "Quinta da
Fonte da Calça"=>1, "Casa Branca"=>2, "Encarnação"=>2, "Mesquita"=>1,
"Bairro de Santa Clara"=>1, "Caselas"=>1, "Quinta do Mata Mouros"=>1,
"Grilo"=>1, "Hipódromo"=>2, "Quinta do Baleeiro"=>1, "Quinta das
Teresinhas"=>1, "Francelha de Cima"=>1, "Quinta das Lavadeiras"=>2,
"Quinta dos Azulejos"=>1, "Bairro da Liberdade"=>1, "Quinta do
Pisany"=>1, "Quinta do Souto"=>2, "Quinta da Barroca"=>1,
"Alcântara"=>1}, :ideal_type=>{"Vista"=>11, nil=>27, "Ver e ser
visto"=>16, "Cocktails"=>14, "Descontrair"=>13, "Esplanada"=>8, "Boa
carta de vinhos"=>15, "Beira mar"=>7, "Fora d'horas"=>13, "Sair a
dois"=>14}, :distrito=>{"Lisboa"=>50}, :food_type=>{"Sul
Americana"=>2, "Goesa"=>1, "Francesa"=>2, "Grega"=>3,
"Internacional"=>2, "Judaica"=>2, "Coreana"=>1, "Vietnamita"=>2,
"Steak House"=>2, "Indiana"=>2, "Espanhola"=>4, "Brasileira"=>2, "Fast
Food"=>2, "Light"=>1, "Libanesa"=>2, "Belga"=>4, "Tailandesa"=>1,
"Americana"=>1, "Sueca"=>2, "Israelita"=>2, "Africana"=>2,
"Caribenha"=>1, nil=>18, "Italiana"=>2, "Autor"=>4, "Vegetariana"=>4,
"Nepalesa"=>4, "de Mercado"=>1, "Tibetana"=>2, "Japonesa"=>2, "Fast
Food Gourmet"=>1, "Cubana"=>1, "Portuguesa"=>3, "Irlandesa"=>1,
"Chinesa"=>2, "Grelhados"=>3, "Argentina"=>2, "Marroquina"=>2,
"Tapas"=>3, "Russa"=>1}}


Cheers

On Jan 4, 1:19 am, Pat Allan <[email protected]> wrote:
> Hi Pedro
>
> Not quite sure what you mean... can you give me an example of the data you're 
> faceting, and what you expect the results to be?
>
> --
> Pat
>
> On 04/01/2011, at 12:09 PM, Pedro Cunha wrote:
>
>
>
>
>
>
>
> > Is there any catch to able to get all facets which are refering
> > accented words?
>
> > I get something like  nil => 4
>
> > Or I need to configure a proper char set table? But that doesn't
> > really help my problem because I don't want to lose the proper typing
> > of the words
>
> > Cheers,
> > And really thanks for this awesome gem
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Thinking Sphinx" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/thinking-sphinx?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to