Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2762 (closed)

Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

BUG: qs.findAllByFullText filter

Reported by: wmoore Owned by: jamoore
Priority: major Milestone: OMERO-4.4
Component: Search Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-01-17 (6)

Description

Filter does not limit number of entries returned by
queryService.findAllByFullText()

Code below returns more than 5 results.

p = omero.sys.Parameters()
p.map = {}
f = omero.sys.Filter()
f.limit = rint(5)
f.offset = rint(0)
p.theFilter = f
    
projects = qs.findAllByFullText('Project', "file.contents:%s" % searchTerm, p)
print len(projects)

Change History (4)

comment:1 Changed 12 years ago by jmoore

  • Milestone changed from Unscheduled to OMERO-Beta4.4
  • Owner set to jmoore
  • Remaining Time set to 0.25
  • Sprint set to 2012-01-17 (6)
  • Status changed from new to accepted

comment:2 Changed 12 years ago by jmoore

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

Solved by using a SearchBean instance directly. This has been pushed to my sprint6-server-backlog branch.

comment:3 Changed 12 years ago by jmoore <josh@…>

(In [9a2870a2040ef94dc5edbab517a566d82687802c/ome.git] on branch develop) Apply batchSize to findAllByFullText results (Fix #2762)

comment:4 Changed 12 years ago by jmoore <josh@…>

(In [3d6e31de6f6a3402557512f33796eed9d3b11e1a/ome.git] on branch develop) Handle empty return result from findAllByFullText (See #2762)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.70961 sec.)

We're Hiring!