1. webvariants
  2. Untitled project
  3. lucene-search-slyarticles

Commits

webvariants GbR  committed 23c62c6 Merge

Merged in phoenixh/lucene-search (pull request #1)

  • Participants
  • Parent commits 4154d1a, 61b971d
  • Branches default

Comments (0)

Files changed (2)

File globals.yml

View file
  • Ignore whitespace
+metainfo:
+  articles:
+    ignoresearch:
+      title: Diesen Artikel von der Suche ausschließen
+      datatype: boolean
+      metapage: false

File lib/ArticleLuceneIndexer.php

View file
  • Ignore whitespace
 			WV11::setIgnore(false);
 			return null;
 		}
-
+		/*
+		 * check if article is deactivated from Lucene Search 
+		 * @author fh@krusemedien.com
+		 *
+		*/
+		if($article->getMeta('ignoresearch')){
+			WV11::setIgnore(false);
+			return null;		
+		}
 		// Da der TinyMCE seine Inhalte encodiert müssen sie hier decodiert werden, damit sie korrekt im Index stehen.
 		$content = html_entity_decode($content, ENT_COMPAT, 'UTF-8');