Exclude a node from being searched in Drupal website

Praveen Srinivasan 283
Drupal
search

Let's assume that we have a drupal website and we have search (Search API) option on it. We will do search and drupal will get the search result from index. Now we had a special requirement, i.e we need to exclude a page from search result not a entire content type. This means we need to exclude a page from being searched.

To achieve this we found a module Search Exclude nid, this is usefull if you have very limited no of node to exclude.

If you think you might need to exclude a lot of nodes, better try the other module Search API exclude. This module will give an option for excluding a particular node from search, while you edit the node (node edit form). This module is dependent on Search API module.  

First, we need to install and configure search API module, We need to create Search index and server, here you can find the details on how to do it. https://www.drupal.org/node/1251246

After configuring the search API follow the below steps to excluding a node from search.

  • Step 2: Goto admin/structure/types and click edit button of the content type which you want to exclude. 

  • Step 3: When the edit page shows find and click Search API exclude tab in the bottom of the page.
  • Step 4: Then click Search API Exclude support checkbox. This will enable exclude option for all the node based on this content type.

  • Step 5: Now goto the node page and edit the node. Now goto the bottom of the edit page and find and click "Search API settings" tab.
  • Step 6: Click Exclude from Search API checbox and click save button.
  • Step 7: To see the result, we must reindex the search. So goto Configuration -> Search API and view the search index which you have created for this site search.

  • Step 8: Click Index now button for reindexing. This will take some time.

  • Step 9: Now goto your search page created using the Search API and do the search. Now the excluded page won't available in the search result.

Comments

Hey just wanted to give you a quick heads up. The text in your content seem
to be running off the screen in Ie. I'm not sure if this is a formatting issue or something to do with internet browser
compatibility but I figured I'd post to let you know.
The layout look great though! Hope you get the issue resolved
soon. Many thanks

Also visit my page - printable letterhead template,

This is the right web site for anybody who wants to understand this topic.
You realize a whole lot its almost hard to argue with you (not that I personally would want to…HaHa).
You certainly put a brand new spin on a topic that has
been discussed for many years. Great stuff, just great!

Here is my blog post :: Optimization

This strategy is commonly known as Pairing and most often used along with
corporations in binary trading practice options traders,
investors and traditional stock-exchanges, as
a means of protection and to minimize the associated risks.

whoah this weblog is excellent i love reading your articles.

Keep up the good work! You recognize, lots of people are hunting around for
this information, you can help them greatly.

Feel free to surf to my weblog - link building tips (bit.ly)

Wonderful beat ! I wish to apprentice at the same time as you amend
your website, how could i subscribe for a blog site?
The account aided me a appropriate deal. I had been a little bit acquainted of this your broadcast offered vivid
clear idea

Feel free to surf to my webpage sex Webcam

It's actually a nice and helpful piece of info. I'm satisfied that you just shared this helpful information with us.

Please keep us up to date like this. Thank you for sharing.

Here is my web blog; sex Webcams

Today, I went to the beach front with my children. I found a sea shell and
gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell
to her ear and screamed. There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is entirely off topic but I
had to tell someone!

My web-site ... clatite.org

Fantastic blog here! Additionally your site lots up fast!
What web variety are you currently the usage of? May I get
the affiliate hyperlink in order to your own number? If only my own website filled upwards as
quickly as yours lol

Feel free to visit my homepage: Www.Google.com

This is very interesting, You are a very skilled blogger.
I have joined your feed and look forward to seeking more of your great post.
Also, I have shared your website in my social networks!

Here is my web page - Cam sex

Heya exceptional blog! Does running a blog like this require a great deal
of work? I have no expertise in computer programming but
I had been hoping to start my own blog in the near future.
Anyhow, if you have any suggestions or tips for new blog owners please share.
I know this is off subject but I just needed to ask.
Many thanks!

Have a look at my homepage ... sex shows

Nice post. I learn something new and challenging on sites
I stumbleupon everyday. It will always be exciting to read through content from other authors and use something from their sites.

Feel free to surf to my web site :: webcam Sex

Attractive section of content. I just stumbled upon your weblog and in accession capital to assert
that I get actually enjoyed account your blog posts.
Anyway I'll be subscribing to your augment and even I
achievement you access consistently fast.

my website - company letterhead template

Hi, Neat post. There's an issue together with your web site in web explorer, might test this?

IE still is the marketplace chief and a good portion of
other folks will pass over your excellent writing because of this
problem.

My blog: simple effects

certainly like your web site but you have to check the spelling on several of your posts.
Many of them are rife with spelling issues and I find it very troublesome
to tell the truth on the other hand I'll certainly come again again.

My site: adult web cam Sex chats

Oh my goodness! Amazing article dude! Thanks, However I am encountering difficulties with your RSS.
I don't understand the reason why I cannot join it.
Is there anybody else getting similar RSS problems? Anybody who knows the solution can you kindly respond?
Thanx!!

My web blog digital marketing

Pages

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Want to discuss, How Kiluvai Tech Solutions can help you?Get Started