duraiks / lucene-silverstripe-plugin

Automatically exported from code.google.com/p/lucene-silverstripe-plugin
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Show In Search #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Pages with the ShowInSearch Flag (sitetree property) set to false get indexed. 
The wrapper had a fix ins rev30 bit it didnt make it to any rev after 31? 

Original issue reported on code.google.com by thomas.j...@gmail.com on 30 Aug 2011 at 1:58

GoogleCodeExporter commented 8 years ago
There's definitely something odd when setting a page to not Show in Search. 
After saving, the page stays in the search results. If you do a index rebuild, 
the page does disappear from the results, but a seemingly random page appears 
in it's place in the results which doesn't even contain the term searched for.

Looking at the code, it seems in revision 30 an update was made to delete a 
page from the index if it was set to not Show in Search, but in revision 33 it 
looks like a lot of the app was rewritten, this code was removed and instead it 
appears to index all pages irrespective of ShowInSearch, but then applies a 
filter at search time to filter out non ShowInSearch pages. Can't work out what 
the bug is though. It would be great to get this fixed.

Original comment by j...@purplespider.co.uk on 22 Apr 2012 at 12:02