Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Fix title highlighting #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ The package contains several text analysis tasks to generate the terms used in t

.. code-block:: bash

$ ./mange.py construct_tfidf_model gensim_data/immix_summaries.mm gensim_data/immix_summaries.tfidf_model
$ ./manage.py construct_tfidf_model gensim_data/immix_summaries.mm gensim_data/immix_summaries.tfidf_model

7. Add the topN 'most descriptive' terms to each indexed document:

.. code-block:: bash

$ ./mange.py analyze_text index_descriptive_terms "immix_analyzed/summaries/*.tar.gz" gensim_data/immix_summaries_pruned.dict gensim_data/immix_summaries.tfidf_model gensim_data/immix_summaries.tfidf_model 'quamerdes_immix_20140920' 'text_descriptive_terms' 10
$ ./manage.py analyze_text index_descriptive_terms "immix_analyzed/summaries/*.tar.gz" gensim_data/immix_summaries_pruned.dict gensim_data/immix_summaries.tfidf_model gensim_data/immix_summaries.tfidf_model 'quamerdes_immix_20140920' 'text_descriptive_terms' 10

License
-------
Expand Down
2 changes: 1 addition & 1 deletion avresearcher/static/templates/search/results_list_kb.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var title;
if ('highlight' in hit && 'title' in hit.highlight) {
title = hit.highlight.title[0];
} if (hit.fields.title[0]) {
} else if (hit.fields.title[0]) {
title = hit.fields.title;
} else {
title = '(untitled article)';
Expand Down