So I have a trade order execution system where the stock order once executed and confirmed, the complete order.xml is stored in an Oracle DB as a BLOB field. Now I have 2 fields which I need to index and search on: 1. The OrderId numeric field and the BLOB order.xml field.
Does Hibernate Search custom field bridge and a Lucene Fieldable lazy field implementation help in such a case to read the xml tags, extract the CDATA text and index on those words so as to become easier to be searchable by Broker Name, Customer Name, CUSIP Id, Stock Ticker, etc�
Hi Yes this is totally possible. Your custom bridge will read and part the XML and put the attributes you want into the Lucene Document under the Fields you want.
Typically you will ahve something like that
public class Trade { @Id @DocumentId Integer orderId;