[oXygen-user] Using the existing Lucene index

Oxygen XML Editor Support support at oxygenxml.com
Mon Feb 10 04:28:02 CST 2014


Hi Nathan,

We do not have API which would allow you to access the indexing 
information we store for each resource. Even if we did, it currently 
would not help you because the indexer only stores certain properties 
for each encountered XML element without having enough information in 
the saved index to see outgoing or incoming references to a resource.

Right now if you have a single root DITA Map opened in the DITA Maps 
Manager view you can open the DITA topic in the visual Author editing 
mode, right click on the title and choose "Search References" to see 
which maps and topics directly refer to this topic starting from the 
root map.

You can also right click inside an element which has an ID and do the 
same "Search References" to see all places where the ID was referenced 
starting with the root DITA Map.

The problem in your case would be that you have multiple master/root 
DITA Maps. We plan to allow in the future establishing a set of root 
DITA maps in the context of which rename and search operations can be 
performed. Until then you would need to create a DITA Map which 
references to the master DITA Maps and use it as the context for all 
search and rename operations.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 2/7/2014 10:37 PM, Nathan wrote:
> Hi, I am not sure if this should go in the SDK mailing list or in this
> one, so I thought I would start here. I was wondering if there is a way
> to find out what all are indexed by the Lucene indexing operation when
> using Open/Find Resource? Where am I going with this? I am trying to
> build some customizations which would:
>
>   * Find out all the ditamaps that the active document is being used in
>     - I understand I can walk down the ditamap tree and find this out
>     but if anything in this regard is already stored in the index, I
>     would be very interested in getting it from there
>   * Find all references and conrefs which are pointing to a particular
>     selection (this is more so for inline conrefs rather than conreffed
>     file) - I did read somewhere that this is not being indexed, but I
>     thought it better to ask.
>
> If there is any existing way to do any of the operations above, I am
> would be really eager to know. Thanks, Nathan
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>


More information about the oXygen-user mailing list