Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 406026

Summary: Marketplace Search API ignores category
Product: Community Reporter: Carsten Reckord <reckord>
Component: MarketplaceAssignee: Marketplace Inbox <marketplace-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chris.guindon
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Carsten Reckord CLA 2013-04-18 15:26:19 EDT
The apache_solr search API currently ignores the category and only filters by market. This is regardless of the order in which category and market are listed in the query.

http://marketplace.eclipse.org/api/p/search/apachesolr_search/WikiText?filters=tid:31%20tid:38 (WikiText in "Mylyn Connectors" category and "Tools" market) results in

    <node id="1065" name="Mylyn WikiText" url="http://marketplace.eclipse.org/content/mylyn-wikitext">
    <node id="570" name="Textile-J" url="http://marketplace.eclipse.org/content/textile-j">
    <node id="99020" name="Trac Wiki Editor 4 Eclipse" url="http://marketplace.eclipse.org/content/trac-wiki-editor-4-eclipse-0">

but only the first node actually has the correct category. Filtering only by category doesn't work either.

The MPC test covering this search started failing around the time the fix for bug 402027 went public, so those two might be related.
Comment 1 Christopher Guindon CLA 2013-04-18 15:57:15 EDT
(In reply to comment #0)
> The apache_solr search API currently ignores the category and only filters
> by market. This is regardless of the order in which category and market are
> listed in the query.
> 
> http://marketplace.eclipse.org/api/p/search/apachesolr_search/
> WikiText?filters=tid:31%20tid:38 (WikiText in "Mylyn Connectors" category
> and "Tools" market) results in
> 
>     <node id="1065" name="Mylyn WikiText"
> url="http://marketplace.eclipse.org/content/mylyn-wikitext">
>     <node id="570" name="Textile-J"
> url="http://marketplace.eclipse.org/content/textile-j">
>     <node id="99020" name="Trac Wiki Editor 4 Eclipse"
> url="http://marketplace.eclipse.org/content/trac-wiki-editor-4-eclipse-0">
> 
> but only the first node actually has the correct category. Filtering only by
> category doesn't work either.
> 
> The MPC test covering this search started failing around the time the fix
> for bug 402027 went public, so those two might be related.

You are correct! I applied a patch and now searching for WikiText in "Mylyn Connectors" category and "Tools" market only returns 1 listing.

Can you confirm that your test are passing now?
Comment 2 Carsten Reckord CLA 2013-04-19 04:16:55 EDT
Yes, I can confirm that it's working now. Thanks!
Comment 3 Christopher Guindon CLA 2013-04-19 09:26:28 EDT
(In reply to comment #2)
> Yes, I can confirm that it's working now. Thanks!

Great! thanks for reporting this!