Page 5 of 5

Re: Querying the external XML file (written by OMERO.editor)

PostPosted: Tue Feb 15, 2011 6:35 am
by jmoore
BK,

from that line of code it would like like only exParser could possibly be null. How are you setting it?

~Josh

Re: Querying the external XML file (written by OMERO.editor)

PostPosted: Tue Feb 15, 2011 4:15 pm
by bhcho
Hi Josh and everyone,

I realized I forgot to initialize the "exParser" before I use it.
And now, I successfully uploaded my custom bridge and also got successful search query results.

Thank you sooooooo much!

for guys after me who want to do similar things, I attached my java source code.
this code is
- searching attached experiment XML file
- parsing the hierarchy of the XML file
- extracting the keys and values like Key: "A.B.C1", Values: "Glass"
- update Lucene Index

So, later you can query by omero shell like
Code: Select all
import omero
host = "xxx"
port = 4064
user = "yyy"
password = "zzz"

client = omero.client(host, port)
session = client.createSession(user, password)

search = client.sf.createSearchService()
search.onlyType("Image")
search.byFullText("A.B.C1:Glas*")

ids = [x.id.val for x in search.results()]


BK

Re: Querying the external XML file (written by OMERO.editor)

PostPosted: Tue Feb 15, 2011 4:19 pm
by jmoore
You're very welcome, BK. Great to hear!

Cheers,
~Josh