z_pivot_rsc_job (zotonic_core v1.0.0-rc.14)
Link to this section Summary
Functions
Fetch the first title from the record for sorting.
Fetch the title in the default language for sorting.
Translate a language to a language string as used by postgresql. This language list is the intersection of the default catalogs of postgres with the languages supported by mod_translation.
Run the sidejob task queue task.
Return a modified property list with fields that need immediate pivoting on an update.
Start a task queue sidejob.
Return the language used for stemming the full text index. We use a single stemming to prevent having seperate indexes per language.
Link to this section Functions
Link to this function
cleanup_tsv_text(Text)
-spec cleanup_tsv_text(binary()) -> binary().
Link to this function
get_pivot_title(Props)
-spec get_pivot_title(map()) -> binary().
Link to this function
get_pivot_title(Id, Context)
-spec get_pivot_title(m_rsc:resource_id(), z:context()) -> binary().
Link to this function
pg_lang(_)
Link to this function
pg_lang_extra(LangCode)
Link to this function
pivot_job(PivotRscList, Context)
-spec pivot_job(list(), z:context()) -> ok.
Link to this function
pivot_resource_update(Id, UpdateProps, RawProps, Context)
Link to this function
start_pivot(PivotRscList, Context)
-spec start_pivot(list(), z:context()) -> {ok, pid()} | {error, overload}.
Link to this function
stemmer_language(Context)
-spec stemmer_language(z:context()) -> string().
Link to this function
stemmer_language_config(Context)
-spec stemmer_language_config(z:context()) -> atom().