2008 Mar 30 4:23 PM
Hi,
I'm using NW 2004 (6.40). Can I to use TREX to index a ABAP table?. How I can do that?.
Best Regards,
Jose Idrobo.
2008 Mar 30 7:54 PM
TREX search engine and writing own solution by using ABAP Client. Everything is ok except files content like XLS, DOC and so on. When we try to post binary content to the FM TREX_EXT_INDEX it is not processed by TREX and only attributes search is available.
Test example:
code
data lt_data type table of char100.
data l_size type i.
data lt_doc type trext_index_docs.
data ls_doc type trexs_index_doc.
call function 'GUI_UPLOAD'
exporting
filename = 'D:\test.xls'
filetype = 'BIN'
importing
filelength = l_size
tables
data_tab = lt_data.
ls_doc-doc_key = '00001'.
ls_doc-doc_langu = 'EN'.
ls_doc-doc_type = 'B'.
ls_doc-mime_type = 'application/excel'.
call function 'SCMS_BINARY_TO_STRING'
exporting
input_length = l_size
importing
text_buffer = ls_doc-content
tables
binary_tab = lt_data.
append ls_doc to lt_doc.
call function 'TREX_EXT_INDEX'
exporting
i_index_id = me->index_id
i_rfc_destination = me->rfc_dest
i_index_document_list = it_doc.
[/code]
Document is indexed without content.
Kevin
2008 Mar 30 9:34 PM
Hi Kevin,
Thanks you, but I want to index a ABAP table like PA0002 for example. How I can do that?.
And How I can use this index in abap program?.
Best Regards,
Jose Idrobo.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |