First time here? Check out the FAQ!
2

Is it possible to use Sphinx with Postgres?
 

Is it possible to use Sphinx with Postgres?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Erick Almeida's avatar
73
Erick Almeida
asked 12 years ago
todofixthis's avatar
1.3k
todofixthis
updated 12 years ago

Comments

see more comments

1 Answer

2

Not as it is coded now. Is Sphinx search better than Postgres FTS?

We are adding support of Haystack soon, already have the code on one of the development branches.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

I need configure something for search's in Askbot work with Postgres FTS?

Erick Almeida's avatar Erick Almeida (12 years ago)

No, the configuration for that is built in. If you run migrations FTS will be set up. There is also a management command init_postgresql_full_text_search. If you are bypassing migrations with syncdb --all, then run that command afterwards. The command can be run many times without any issues.

Evgeny's avatar Evgeny (12 years ago)

How do I run this management command?

Erick Almeida's avatar Erick Almeida (12 years ago)

python manage.py command_name

Evgeny's avatar Evgeny (12 years ago)

./manage.py init_postgres_full_text_search This command does't run.

Erick Almeida's avatar Erick Almeida (12 years ago)
see more comments