Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #115 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

Bug in facet control

Reported by: mari@… Owned by: andy@…
Priority: major Component: EasySearch
Keywords: Cc:

Description

When selecting multible facets the query is not constructed correctly.
Example: query q=sopp&ATT=3&AOV_2788=1 becomes

+easysearch_primarycontent_no:sopp +(TT:3 OV_2788:1)

while it should be

+easysearch_primarycontent_no:sopp +(+TT:3 +OV_2788:1) 

Change History

comment:1 Changed 5 years ago by mari@…

Did some debugging, and think I've found the problem:
In AbstractFacetControl.cs, changing line 174 from

  BooleanClause userClause = new BooleanClause(termQuery, BooleanClause.Occur.MUST);

to

  BooleanClause userClause = new BooleanClause(termQuery, BooleanClause.Occur.MUST);

solved my problem.
Andy: Is this a correct fix?

comment:2 Changed 5 years ago by mari@…

Sorry! First line should be:

  BooleanClause userClause = new BooleanClause(termQuery, BooleanClause.Occur.SHOULD);

comment:3 Changed 5 years ago by andy@…

  • Status changed from new to closed
  • Resolution set to fixed

Confirmed, this is a correct fix. Committed to SVN in [898].

Note: See HelpUser/Tickets for help on using tickets.