Page 4 of 4

Re: search from OMERO.insight

PostPosted: Fri Dec 10, 2010 4:14 pm
by jmoore
Hi BK,

thanks again for the database. Here were the steps I took:

  • Copied your cpe.xml file to 3 ids under /OMERO/Files/Dir-005
  • Recreated your database locally
  • Ran: "delete from configuration where name like 'Persistent%';" -- This restarts indexing. This could have been do manually.
  • Downloaded 4.2.2 server
  • Started it
  • Waited for indexing to complete.

I then logged in as you and as "demo" and did the following searches:
Code: Select all
In [3]: c = omero.client("localhost")

In [4]: s = c.createSession("bhcho", "ome")

In [5]: c.enableKeepAlive(60)

In [6]: x = s.createSearchService()

In [7]: x.onlyType("Image")


...
In [7]: x.byFullText("file.contents:glass")

In [8]: len(x.results())
Out[8]: 1

In [9]: x.bySomeMustNone(["file.contents:glass"], [], [])

In [10]: len(x.results())
Out[10]: 1

...

In [12]: s = c.createSession("demo", "ome")

In [13]: x = s.createSearchService()

In [14]: x.onlyType("Image")

In [15]: x.byFullText("Glass")

In [16]: len(x.results())
Out[16]: 2

...



So that all seems to work fine. I have filed a ticket (https://trac.openmicroscopy.org.uk/omero/ticket/3669) since I'm also not seeing the results appear in the client. This may be due to an issue with the data itself. I've CC'd you on the ticket, so you'll hear of any changes.

Thanks for helping us to track this down.
~Josh.