We're Hiring!

search from OMERO.insight

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re: search from OMERO.insight

Postby jmoore » Fri Dec 10, 2010 4:14 pm

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.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Previous

Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 0 guests