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 #191 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

EasySearch - FindPagesWithCriteria and multilanguage

Reported by: oyvind@… Owned by: andyturl@…
Priority: major Component: EasySearch
Keywords: Cc:

Description (last modified by simon@…) (diff)

When doing the FindPagesWithCriteria in a multilanguage enviroment the result returns all languages even though the pages are not translated to the searched language. I use only one criteria and that is the pagetypeid (to find news elements).

It might be my environment that is wrong, but the check for language != null solves this issue.

PageData languagePage = DataFactoryHelper.GetPage(PageReference.Parse(pageId), selector);
if (languagePage != null) pdc.Add(languagePage);

source:/NetworkedPlanet.EasySearch/5.x/NetworkedPlanet.EasySearch.Lucene/LuceneQuery.cs

Line 107.

Do you want me to commit the changes ?

Attachments

05.02.png (20.3 KB) - added by oyvind@… 8 years ago.
Errormessage

Change History

Changed 8 years ago by oyvind@…

Errormessage

comment:1 Changed 8 years ago by simon@…

  • Description modified (diff)

Just re-formatting source link.

comment:2 Changed 8 years ago by andyturl@…

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

Hi Oyvind,
Thanks for the report, the code looks good and I've tested it. I also noticed a slight error with the StartsWith and EndsWith logic so in FindPagesWithCriteria so I made some other changes and checked those in.
Cheers
-Andy

comment:3 Changed 8 years ago by simon@…

Commit was [1387] just for reference - and to complete my trivial involvement with this ticket :-)

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