Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I'm in the process of learning Umbraco and have encountered a problem with search.
I've set up the examine config files, wired in my search box using a post and used the standard Razor Search macro.
If I type in a search term which isn't on the site, I get zero results, as expected.
However, I enter a term that is in the site, I get 2 results back.
1 being the correct link
and another being a link to the search page itself.
I know I could put in some code to catch that result and ignore it but that doesn't seem right.
So, does anyone have any ideas ?
Thanks,
Steve.
Hi Steve,
In your ExamineInex.config I believe you can under the excludenodetypes add nodes you dont want to be indexed in your examine (Lucene) index.
Once done this then you would need to re-index.
Tom
Hi Tom,
I finally figured it out. It was the re-indexing bit that caused the problems.
Is there a better way of doing that other than stopping the website on IIS, deleting the index directory and restarting?
S.
Download this project http://our.umbraco.org/projects/backoffice-extensions/examine-index-admin
It re-indexes everything with the click of a button
and this http://our.umbraco.org/projects/developer-tools/examine-dashboard will show you the nodes, attributs being indexed.
Hope that helps
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Search problem - search page being returned in the results.
Hi,
I'm in the process of learning Umbraco and have encountered a problem with search.
I've set up the examine config files, wired in my search box using a post and used the standard Razor Search macro.
If I type in a search term which isn't on the site, I get zero results, as expected.
However, I enter a term that is in the site, I get 2 results back.
1 being the correct link
and another being a link to the search page itself.
I know I could put in some code to catch that result and ignore it but that doesn't seem right.
So, does anyone have any ideas ?
Thanks,
Steve.
Hi Steve,
In your ExamineInex.config I believe you can under the excludenodetypes add nodes you dont want to be indexed in your examine (Lucene) index.
Once done this then you would need to re-index.
Tom
Hi Tom,
I finally figured it out. It was the re-indexing bit that caused the problems.
Is there a better way of doing that other than stopping the website on IIS, deleting the index directory and restarting?
Thanks,
S.
Download this project http://our.umbraco.org/projects/backoffice-extensions/examine-index-admin
It re-indexes everything with the click of a button
and this http://our.umbraco.org/projects/developer-tools/examine-dashboard will show you the nodes, attributs being indexed.
Hope that helps
Tom
is working on a reply...