Hi John,
Yes we have a problem with the search result ranking.
I remember this jira issue for example:
http://jira.xwiki.org/jira/browse/XPLUCENE-8
Someone would need to look at it and provide a patch. If you're up to it feel free to
provide one and we can apply it.
Regarding hiding attachments altogether I'd be more hesitant to have that in the
default XE. However, you should be able to filter them out I think if you edit the lucene
search page. That would be a good topic to document on
xwiki.org.
Thanks
-Vincent
On Jan 20, 2011, at 12:58 AM, John Lantz wrote:
We are having a problem with image attachments
clogging up our search results.
Say a user is searching for Orange. The topic page Orange will be ranked below an image
named orange.png, as well as an image named IMAGEI68A35.png that is on a the Fruit Salad
topic page.
Ideally, we would be able to hide all attachments from search results. We don't want
to hide attachments on topic pages-we need the images to be displayed-but we do need to
hide them from search results.
The problem is identical to the one posted by this user:
http://jira.xwiki.org/jira/browse/XPLUCENE-63
Any suggestions? A simple bit of code I could past into a config or preference file
somewhere?
Any help would be greatly appreciated.
Thank you very much,
John Lantz
Developer Advocate
IdeaBlade