Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sphinx log score attributes are now initiated to 0

  • Loading branch information...
commit 53f8ee5f90669a86c35b845e65145d914d4afd65 1 parent 0d060d1
@alexksikes authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 tutorial/README.md
  2. +1 −1  tutorial/config/sphinx_indexer.cfg
View
6 tutorial/README.md
@@ -166,12 +166,12 @@ And now let searchd serve the index:
/usr/local/sphinx/bin/searchd -c ./config/sphinx_indexer.conf
-Note that the "sphinx_indexer.conf" must have an attribute called "log_scores_attr" set to 1 and declared as a float.
+Note that the "sphinx_indexer.conf" must have an attribute called "log_score_attr" set to 0 and declared as a float.
- # log_score_attr must be set to 1
+ # log_score_attr must be set to 0
sql_query = \
select *,\
- 1 as log_score_attr,\
+ 0 as log_score_attr,\
from table
# log_score_attr will hold the scores of the matching items
View
2  tutorial/config/sphinx_indexer.cfg
@@ -29,7 +29,7 @@ source items
unix_timestamp(release_date) as release_date_attr, \
runtime as runtime_attr, \
\
- 1 as log_score_attr, \
+ 0 as log_score_attr, \
\
(select group_concat(distinct genre) from genres as g where g.imdb_id = t.imdb_id) as genres, \
(select group_concat(distinct director_name) from directors as d where d.imdb_id = t.imdb_id) as directors, \
Please sign in to comment.
Something went wrong with that request. Please try again.