user3649739
user3649739

Reputation: 1869

Index & in Sphinx?

I keep adding to my exceptions.txt file in m Sphinx configuration for acornyms that contain & e.g:

A&E => A&E

so that it is not indexed as two separate letters. However it is getting monotonous and I wonder if I can/should somehow just make '&' indexed. The questions are:

  1. How do I force & to index
  2. Will A&E then index as such?
  3. Is there a downside I'm not 'getting' since Sphinx decides to not index & in the first place?

Upvotes: 0

Views: 63

Answers (1)

barryhunter
barryhunter

Reputation: 21091

  1. Add & to charset_table http://sphinxsearch.com/docs/current/conf-charset-table.html

  2. should do

  3. There is a small chance of things like 'marks&spensors' means that would only ever match that exact form (ie wouldnt match say marks & spensors as different.

Might want to consider http://sphinxsearch.com/docs/current/conf-blend-chars.html instead, so get somewhat best of both.

Upvotes: 1

Related Questions