Developer forum

Forum » Development » Term facets
Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

I have a problem using term facets as the query eliminates results from the same facet, so if I have "red", "yellow" and "blue" as term facets and selects "red", then "blue" and "yellow" are gone.

 

I think the problem is somehow related to this piece of code in FillFacetFieldTerms():

            var searcher = new IndexSearcher(reader);
            searcher.SetDefaultFieldSortScoring(true, false);
            var filter = new CachingWrapperFilter(new QueryWrapperFilter(query));
            TopFieldDocs topFieldDocs = searcher.Search(query, filter, int.MaxValue, Sort.RELEVANCE);

In this section the same query is used for the filter and search query.

 

Hope this makes sense?

 

Best regards, Anders


Replies

 
Nicolai Pedersen
Reply

It does... That is an ugly bug, agreed.

Will look into it!

BR Nicolai

 
Anders Ebdrup
Anders Ebdrup
Reply

Thank you so much! And please see if this change can be ported down to the 8.9-branch smiley

 
Nicolai Pedersen
Reply

Alright, since it is you :-)

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Nicolai,

 

Do you have a TFS number for this issue as I cannot see it in the bug list anymore?

 

Best regards, Anders

 
Nicolai Pedersen
Reply

Hi Anders

TFS#34940 - it has been done, in Dynamicweb.Indexing.Lucene 1.0.8 package.

BR Nicolai

 
Anders Ebdrup
Anders Ebdrup
Reply

Sounds great, thanks! :-) Does it mean that it is available in the nuget-feed? And will it be released in a 8.9-version?

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Nicolai,

 

Will this change make it to the 8.9-branch?

 

Best regards, Anders

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Anders,

The change has now been merged into the 8.9-branch.

As of now, we don't have a plan for the next hotfix for the 8.9-branch, so I don't have date for when this change will be released.

Best regards

Steffen

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Steffen,

 

Do you have a new version of 8.9 with this fix or when will you expect this to be released?

Best regards, Anders

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Anders,

It should be out in the 8.9.2.6 version

Best regards

Steffen

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Steffen,

Are you sure that the hotfix is in 8.9.2.6 version? :-)

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Steffen, Can you please confirm that this hotfix is released in 8.9.2.6?

Best regards, Anders

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Anders,

The change is out in the 8.9.2.6, I have checked the released dll. So let us know if you are still expirencing problems, then there must be something else causing the problem in DW8.9 than on DW9

 

Best regards

Steffen

 
Martin Jensen
Reply

Hi Steffen

This is still an issue in version 8.9.2.6.

Like Anders said: if I have "red", "yellow" and "blue" as term facets and select "red", then "blue" and "yellow" are gone.

How can we solve this ?

/Martin

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Martin,

I have created a new bug on the issue TFS#39090. I have fixed the problem, and sent the bug to QA to test it.

The fix will probably get out in the next version of 8.9.2, which will most likely get out sometime today or tomorrow.

Best regards,

Steffen

 
Martin Jensen
Reply

Hi Steffen

Sounds great, looking forward to try it :)

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Steffen,

 

It seems like this is not added to the 8.9.2 version. Do you have a new ETA for this fix?

 

Best regards, Anders

 
Martin Jensen
Reply

+1

 
Anders Ebdrup
Anders Ebdrup
Reply

Seems to be working just fine - thank you very much! :-)

 

You must be logged in to post in the forum