Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alpesh 13 posts 103 karma points
    Feb 01, 2016 @ 05:05
    Alpesh
    0

    Search is not working properly using Full Text Search

    I have implemented Full Text Search in Umbraco 7.1.4 but it seems to be working with Nodes Name only. But it seems to be not for bodyText and pageTitles?

    I have installed it from https://our.umbraco.org/projects/website-utilities/full-text-search/

    can anyone help me with this?

  • Claushingebjerg 830 posts 2144 karma points
    Mar 31, 2016 @ 10:01
    Claushingebjerg
    0

    I have the same problem on 7.4.0. It only searches nodename, and only displays nodename in results.

    This site is grid based. I have fulltextsearch running on a 7.1.3 site based on archetype, working fine?!?

    Any ideas?

  • John B 5 posts 75 karma points
    Sep 05, 2016 @ 08:34
    John B
    0

    If you still need answer - for first - in ExamineIndex.config file you have setting for indexing, so you could setup fields and NodeTypes (include, exclude) for indexing, and after that use them in search. for second - also u could change indexing logic to index grid inside node, smth like

    protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            var fullTextIndexer = ExamineManager.Instance.IndexProviderCollection["FullTextIndexer"];
            var indexer = (UmbracoContentIndexer)fullTextIndexer;
            indexer.DocumentWriting += FullTextIndexer_DocumentWriting;
            //SearchExtension.ResultOutput += SearchExtension_ResultOutput;
    
            base.ApplicationStarted(umbracoApplication, applicationContext);
        }
    
    private void FullTextIndexer_DocumentWriting(object sender, DocumentWritingEventArgs e)
            {
                var node = ApplicationContext.Current.Services.ContentService.GetPublishedVersion(e.NodeId);
                if(node == null)
                {
                    return;
                }
                Field field = null; 
               //do som stuff with that field here (check grid and add it to field, it's Lucene.Net document field, set boost for this field
                e.Document.Add(field );
    
    
        }
    
  • Jeremy Pyne 106 posts 244 karma points MVP c-trib
    Sep 09, 2016 @ 16:24
    Jeremy Pyne
    0

    I'm using it on 7.5 without issue.

    You may need to check HttpUrl in FullTestSearch.config, or the logs to make sure it's able to pull the pages for indexing.

    It even works with grid contents.

  • Claushingebjerg 830 posts 2144 karma points
    Sep 12, 2016 @ 06:39
    Claushingebjerg
    0

    My issue ended up being my own fault. I hadn't enabled fulltextsearch in the config file...

Please Sign in or register to post replies

Write your reply to:

Draft