mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix CS
This commit is contained in:
@@ -88,7 +88,6 @@ class sphinx_configuration
|
||||
$charsets = explode("\n", $charsets);
|
||||
$last_detect = false;
|
||||
|
||||
|
||||
for ($i = (count($charsets) - 1); $i >= 0; $i -- ) {
|
||||
if (trim($charsets[$i]) === '') {
|
||||
unset($charsets[$i]);
|
||||
@@ -177,7 +176,6 @@ class sphinx_configuration
|
||||
sql_attr_string = keyword
|
||||
}
|
||||
|
||||
|
||||
index suggest' . $index_crc . '
|
||||
{
|
||||
source = src_suggest' . $index_crc . '
|
||||
@@ -186,7 +184,6 @@ class sphinx_configuration
|
||||
' . $charset_abstract . '
|
||||
}
|
||||
|
||||
|
||||
#--------------------------------------
|
||||
### Metadatas Sources
|
||||
source src_metadatas' . $index_crc . ' : database_cfg' . $index_crc . '
|
||||
@@ -313,7 +310,6 @@ class sphinx_configuration
|
||||
type = rt
|
||||
path = /var/sphinx/datas/metas_realtime_' . $serialized . '
|
||||
|
||||
|
||||
' . $charset_abstract . '
|
||||
|
||||
rt_field = value
|
||||
@@ -333,8 +329,6 @@ class sphinx_configuration
|
||||
rt_attr_timestamp = created_on
|
||||
}
|
||||
|
||||
|
||||
|
||||
#--------------------------------------
|
||||
### All documents Index (give the last 1000 records added, etc...)
|
||||
|
||||
@@ -387,7 +381,6 @@ class sphinx_configuration
|
||||
morphology = none
|
||||
}
|
||||
|
||||
|
||||
index documents' . $index_crc . '_stemmed_fr : documents' . $index_crc . '
|
||||
{
|
||||
path = /var/sphinx/datas/documents_' . $serialized . '_stemmed_fr
|
||||
@@ -406,7 +399,6 @@ class sphinx_configuration
|
||||
index_exact_words = 1
|
||||
}
|
||||
|
||||
|
||||
index documents' . $index_crc . '_stemmed_en : documents' . $index_crc . '
|
||||
{
|
||||
path = /var/sphinx/datas/documents_' . $serialized . '_stemmed_en
|
||||
@@ -433,7 +425,6 @@ class sphinx_configuration
|
||||
type = rt
|
||||
path = /var/sphinx/datas/docs_realtime_' . $serialized . '
|
||||
|
||||
|
||||
' . $charset_abstract . '
|
||||
|
||||
rt_field = value
|
||||
@@ -451,18 +442,15 @@ class sphinx_configuration
|
||||
rt_attr_timestamp = created_on
|
||||
}
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# ***************** End configuration for ' . $serialized . '
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
';
|
||||
}
|
||||
|
||||
$conf .='
|
||||
|
||||
|
||||
#******************************************************************************
|
||||
#****************** Sphinx Indexer Configuration ****************************
|
||||
#******************************************************************************
|
||||
@@ -481,7 +469,6 @@ indexer {
|
||||
# max_iosize = 1048576
|
||||
}
|
||||
|
||||
|
||||
#******************************************************************************
|
||||
#****************** Sphinx Search Daemon Configuration **********************
|
||||
#******************************************************************************
|
||||
@@ -595,8 +582,6 @@ searchd
|
||||
|
||||
';
|
||||
|
||||
|
||||
|
||||
return $conf;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user