Hi Josh,
From what I understand at
http://trac.openmicroscopy.org.uk/omero ... rchBridgesThe bridge means the mapping between my metadata and how it is stored in the Lucene index.
I have lots of questions,
0. is the bridge a java code that defines how to map the meta data into the Lucene index? such as
http://trac.openmicroscopy.org.uk/omero ... ridge.java in which I don't understand a lot.
1. Assuming I want to parse all the values in the Protocol XML file into the Lucene index.
and have a java class named "ExperimentFileBridge", in which I have a function such as
public void set (final Object XMLfile, final Document document, final LuceneOptions _opts){
// 1. parse the XML file and get all the values from individual elements
// 2. add all the values to the lucene document such as
// add(document, "A.B.C1", value1, _opts);
// add(document, "A.B.C2", value2, _opts);
// add(document, "A.D.C1", value3, _opts);
}
Am I right about this?
1.1. when I tried to compile this source file, it gave me errors like
package ome.model.containers does not exist
which library file should I include for a classpath when I compile this. I tried with loci_tools.jar, but it did not work.
2. I don't understand how to configure this class to my server.
2.1. from
http://trac.openmicroscopy.org.uk/omero ... Deployment,
what is the NewServicel.class file and how it look like? (Do I need this file?)
2.2. and what is "ome/service/blits-*.xml file"? (Do I need this file?)
2.3. should I compile my java source file with all related files and generate a jar file named "extensions.jar" and copy it to
OMERO_DIST/lib./server/ ?
And that's all for the configuration?
3. how can I call the bridge?
is it called everytime I import an image or everytime I attach the external xml file?
3.1. as you can see in the pseudo-source code above, I need to pass the XMLfile and Lucene document as input argument to the bridge,
I think I need to know when the bridge is called and how to pass them to the bridge. (maybe I'm misunderstanding alot with this question).
4. for the search query in my Script python code, could you show me an example code to query like "A.B.C1:Bob"?
I guess I will have a lot further questions after this.
Thanks in advance,
BK