Search text for keywords - innodb table

I have a longtext column in a table that I need to search
through for keywords. The table is in innodb format. I dont want to
change it to myisam because I can't afford to have it lock at the
table level... I prefer the row level of innodb.
How can I build a search around this? It would be nice to
have all words, any words, and exact phrase as an option, as seen
in tom mucks extension (which i own)... however, this recordset has
so many arrays, it's completely hand coded and they extension isn't
suppose to work with anything but default recordsets.
Any suggestions? How can I have a more comprehensive search
using a innodb table?

tom mucks extension lets you use keywords 3 ways... all
words, any words, and exact phrase.
http://www.tom-muck.com/extensions/help/DynamicSearchPHP/

Similar Messages

  • I have scanned about 1600 pages of 100-year old documents and saved them as pdf files.  I would like to search them for keywords and phrases.  Can anyone recommend software that can be used as an index for these documents?

    I have scanned about 1600 pages of 100-year old documents and saved them as pdf files.  I would like to search them for keywords and phrases.  Can anyone recommend software that can be used as an index or search engine for these documents?

    If you have Adobe Acrobat (not Adobe Reader) the program can perform an OCR on the document you acquired.
    In the past I used ABBYY FineReader

  • Searching files for keywords

    Hi all,
    I am in the process of building a shell script as part of a auditing utility. It will search a specified directory for keywords and output results of the file path, and line number that the word was found on. I built a test script (shown below) that does just this, but egrep apparently does not allow MS word, excel, etc... documents to be read. I was wondering if someone could point me in an alternate direction that would allow me to search these types of documents as well? (Wordfile is a file that is create elsewhere with a list of words to search for e.g. bus)
    Thanks!
    cat << EOF > ${TMPDIR}/scanit
    rm -f ${TMPDIR}/strings
    strings "\$1" | egrep -n -i -f ${TMPDIR}/wordlist >> ${TMPDIR}/strings
    if [ -s ${TMPDIR}/strings ]
    then
    echo >> ${TMPDIR}/${HOSTNAME}.o
    echo "File: \$1" >> ${TMPDIR}/${HOSTNAME}.o
    file "\$1" >> ${TMPDIR}/${HOSTNAME}.o
    cat ${TMPDIR}/strings >> ${TMPDIR}/${HOSTNAME}.o
    fi
    rm -f ${TMPDIR}/strings
    EOF
    HOSTNAME=`hostname`
    export HOSTNHAME
    if [ $# -eq 0 ]
    then
    echo "You must specify the start of the directory tree to search"
    exit
    fi
    find $1 -type f 2> ${TMPDIR}/${HOSTNAME}finderrors | tee ${TMPDIR}/${HOSTNAME}_filelist | \
    head -100 |\
    sed -e "s^sh -x ${TMPDIR}/scanit \"+" -e 's/$/"/' > ${TMPDIR}/scanitnow
    sh -x ${TMPDIR}/scanitnow 1> ${TMPDIR}/${HOSTNAME}scanrun 2>&1
    cd ${TMPDIR}
    if [ -s ${HOSTNAME}.o ]
    then
    date "+%Y%M%d_%H:%m:%S: indicators found on ${HOSTNAME}" > ${HOSTNAME}scanresults.csv
    cat ${HOSTNAME}.o >> ${HOSTNAME}scanresults.csv
    else
    date "+%Y%M%d_%H:%m:%S: No indicators found on ${HOSTNAME}" > ${HOSTNAME}scanresults.csv
    fi
    zip ${HOSTNAME}_scan.zip ${HOSTNAME}finderrors ${HOSTNAME}_filelist ${HOSTNAME}scanrun ${HOSTNAME}scanresults.csv

    I don't think that info is included in metadata (though I could be wrong - checkout Query Programming and Metadata attributes). If line numbers are a key part of this, then you're probably going to have to (a) make a quick conversion of office files to plain text using textutil, or (b) use osascript to search Word via applescript. trying to read a word doc as plain text in unix is going to give you mounds of headaches (particularly if the 'fast save' option is on in Office, since that will save changes non-sequentially on disk).

  • Search Help for Domain in Table View

    Hi,
    I have to give a search help for one column in a table view, and the values in the search help should come from a domain. I wrote this code, but it doesn't seem to work:
      lv_str_index = iv_index.
      CONDENSE lv_str_index.
      CONCATENATE 'table[' lv_str_index '].OP1A' INTO ls_map-context_attr.
      ls_map-f4_attr      = 'OPERATOR'.
      APPEND ls_map TO lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZOPERATOR'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    the ZOPERATOR is my domain. OP1A is the context attribute. I am actually not sure what to give for F4_ATTR.
    Please help...
    Thanks....

    Hi
    Instead of the Domain , use the Data Element which uses that particular Domain ZOPERATOR.
    For Example ZDE_OPERATOR is the data element which uses the Domain ZOPERATOR.
    then
      lv_str_index = iv_index.
      CONDENSE lv_str_index.
      CONCATENATE 'table[' lv_str_index '].OP1A' INTO ls_map-context_attr.
      ls_map-f4_attr      = 'OPERATOR'.
      APPEND ls_map TO lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZDE_OPERATOR'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.

  • Search Help for field on table maintenance generator ECC 6.0

    Hi All.
    To maintain search help for a custom field on table maintenance generator.
    Only through coding.
    Cannot use domain or data element or table field search helps.
    Have to code only.
    Is there any way?
    Can I do modifications/additions to screen code and achieve this?
    Regards,
    Veeranji Reddy P.

    Scenarion:
    1. table with 2 fields.
    2. table maintenance generator.
    3. Function group with one screen(0001-mentioned in table maintenance) created.
    4. For one field on table maintenance generator...where we add new entries to table, i want a search help.
    Conditions : only coding has to be done..no search helps I can use.
    Coding where and what?
    one option is to code on the screen 0001- either in PBO/PAI.
    Is it a rite place...? or any other option? But no search helps as mentiond in my first message can be used.
    Thanks and Regards,
    Veeranji Reddy P.

  • Adding Metadata to folders/ Searching Drive for Keywords not just one folder -  Bridge CC 2014

    Hello Adobe world,
    I'm trying to add Metadata to folders not the files. The files in the folders already have metadata and in one folder we have 360 images of the same thing. When I do a keyword search I don't want to go though 20+ sets of 360 duplicate files. I need to do keyword searching for folders. When I have tried adding keywords to the folders I get "the file cannot store xmp metadata" warning. I tried clearing the cache on the file because it said that would help in another forum but it did not help. Does any one know how to fix this? I don't know why we could not assign descriptions or keywords to folders. It would be very useful!!  Some one please help!
    as of 2/24/2015 -  This is still unanswered. I want to be able to find files throughout my whole drive based on the metadata tags I put on all my 100,000+ images. These 100,000+ images are dispersed thought out multiple folders. I need to be able to find all the files with specific Metadata tags in common but bridge will not let me search outside of one defined folder? HELP!
    Message was edited by: Jazmyn W

    Hi, Im going through a similar problem. Did you find a solution?? I need to find my files in Windows search bar.

  • How to hide search box in the search region for the attachments (table)

    Dear,
    I have attachments region on the page with Render Search Region property set to true. What I want is to hide the text box in the search region? Is it possible? If I set this property to false the whole region goes away. I want the search region to stay, just get rid of the search box.
    And one more question - what property (of the attachment image) governs 'Publish to Catalog' behaviour?
    Thank you.
    Anatoliy

    I dont think that its possible to change the image.
    Are you trying to disable the document search ? Is the entire region disappearing when you tried disabling the search through personalization, walking the page hierarchy ? Is it for Document catalog ? If so, then it is a bug
    Thanks

  • Field Texts for Dynamic Internal Tables

    Hi All,
    I want to know whether there is any way to get the field Headings (Not the field names)
    Below is my CODE
    For ex :
    CLASS lvl_met DEFINITION.
       PUBLIC SECTION.
         METHODS : l_met IMPORTING m_itab TYPE STANDARD TABLE.
    ENDCLASS.
    CLASS lvl_met IMPLEMENTATION.
    METHOD l_met.
    data : l_t_fields TYPE abap_compdescr_tab." WITH HEADER LINE.
    field-symbols:
        <p_data>      type any,
        <p_field>     type any,
        <p_component> type abap_compdescr.
    CREATE DATA MY_WA LIKE LINE OF m_itab.
    ASSIGN MY_WA->* TO <P_DATA>.
    DESC_STRUC ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( <P_DATA> ).
    *I want the field Headings(Field Text) - In this case i want some thing like Material Number and Plant
    I can read this texts if i know atleast the data element
    At this point i see <p_data> in degbug mode under absolute type column i see \TYPE=WERKS_D aganst werks field
    I don't know how to capture the \TYPE=WERKS_D this thing so atleast i can read field Text based on Data Element
    Is there any other way to find out the field text
    ENDCLASS.
    TABLES : marc.
    DATA : l_met TYPE REF TO lcl_met.
    types : BEGIN OF t_itab,
      matnr like marc-matnr,
      werks like marc-werks,
      end of t_itab.
    data  : itab type table of t_itab.
    START-OF-SELECTION.
      IF l_met IS INITIAL.
        CREATE OBJECT l_met.
      ENDIF.
    select matnr werks from marc into TABLE itab up to 10 rows.
    l_met->get_headertext( EXPORTING m_itab = itab ).
    Thanks
    David

    Hi  Naimesh,
    I tried exactly what you said
    lt_comp = desc_struc->get_components( ). "Get the fields of the structure
    loop at lt_comp into ls_comp.
    lo_elem_desc ?= cl_abap_elemdescr=>describe_by_name( ls_comp-name ).
    lf_dfies = lo_elem_desc->get_ddic_field( ).
    WRITE: / lf_dfies-scrtext_s,
           / lf_dfies-scrtext_m,
           / lf_dfies-scrtext_l.
    WRITE:/ ls_comp-name. " Write the column names
    endloop.
    It Works fine for Matnr because field name and data element are same but when it comes to werks it gives me a dump because the date element is different werks_d
    I just tried hard coding werks_d and it works fine
    lo_elem_desc ?= cl_abap_elemdescr=>describe_by_name( 'WERKS_D' ).
    lf_dfies = lo_elem_desc->get_ddic_field( ).
    WRITE: / lf_dfies-scrtext_s,
           / lf_dfies-scrtext_m,
           / lf_dfies-scrtext_l.
    Let me know how
    Thanks
    David
    Edited by: DAVID KITSO on Nov 23, 2009 10:09 PM

  • Parsing text for keywords

    Hi there, i'm about to start a project where i analyse text and pick out all of the meaningful words, throwing away the determiners (such as "the", "a", "an" etc...).
    I realise that i could compare my String to a whole list of these words, but i was wondering if anybody had any suggestions before i start. Is there a package that would save me the trouble of writing out a long list of words, or even any sample code. I'm googling as we speak but just thought i would ask here as well.
    Thanks in advance
    oookiezooo

    yeah, i already have alot of knowledge of parsing text, but frankly the idea of writing a HUGE list of words i don't want to include doesn't appeal to me, thats why i asked, thanks for trying though!

  • How to set title/text for ALV table column header in WD ABAP

    Hello,
    I am working in WDA using SALV_WD_Table to display data in table. I need to change the column header text, the obvious way is to get the column header and call the method SET_TEXT to set new text / title. However, this method does NOT work, it does not change the column header text. I also tried the SET_TOOLTIP, this one works, but SET_TEXT does not work. Anyone has idea why this not working and do you find any go-around solution?
    My version is NW 7.0
    Thank
    Jayson

    Hi jason ,
    For setting Heder text for your ALV table
    ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
    "set alv table header
      ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
    first you have to hide the DDIC text and then try to set your own text .
    "modify columns
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'MANDT'.
            "hide this field
            lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
           WHEN 'SEQNR'.
            "set header to different string
            lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
            lr_column->r_header->set_text( 'Position' ).     
        endcase.
      endloop.
    Regards
    Chinnaiya P

  • How to Add a filter option for a entire table to a search button?

    Hi all,
    I am new to SAPUI5. i am having a table with hard coded data's.and i have a search field.
    i want to add a filter option to the search field for the entire table..
    i can able to add a filter option to the column by using filterProperty.
    is there is any method or property to do that?
    PS - i have attached my table code.
    Regars
    Dayalan

    Hi Dayalan,
    documentation for filtering and sorting is in this section of the Developers Guide.
    Cheers
    Graham Robbo

  • How search text in current frame of external swf?

    Hello Everyone
    I am loading an external swf using loader.
    How do search and highlight the text in the current frame only?
    Is there a frame class which I could use?
    Thanks

    This is not likely to be possible in the general case, depending on what you mean by "searching text"
    For instance, a Word doc might have the text "Hello, world!" when viewed in Word, but that doesn't mean that the sequence of characters 'H', 'e', 'l', 'l', 'o', etc., exists in the file. There might be one letter, then some binary data indicating that the next letter is some other font or color, then one more letter, then more binary data, etc.
    Conversely, there could be textual metadata in a "binary" file that a person reading the file in the appropriate viewer would never see. Unless you know the details of the format you're reading, you won't be able to distinguish that from "real text".
    And what do you mean "strings" is not efficient? Have you tried it? Does it do what you want? Did you measure and determine that it does not meet your well-defined performance requirements? It's unlikely you'll be able to write code that does the same thing as "strings" but more "efficiently."
    The first step is to put more realistic boundaries on your requirements and define them more precisely. "Extract text from any binary file," is not a valid, meaningful, or reasonable requirement.
    EDIT: I may have misunderstood your requirements. I thought you wanted to "extract all text" from binary files. If that's not what you meant, and you're looking more to replicate grep, then follow Joachim's advice.
    Edited by: jverd on Mar 29, 2010 1:33 PM

  • How to set plain-text for outgoing messages?

    I just upgraded from a Pre "minus" to a Pre 2 with WebOS 2.1 . I now have mail recipients complaining that my messages are in HTML. How to I revert to plain-text for sending messages?
    Post relates to: Pre p100eww (Sprint)

    Hi jason ,
    For setting Heder text for your ALV table
    ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
    "set alv table header
      ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
    first you have to hide the DDIC text and then try to set your own text .
    "modify columns
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'MANDT'.
            "hide this field
            lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
           WHEN 'SEQNR'.
            "set header to different string
            lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
            lr_column->r_header->set_text( 'Position' ).     
        endcase.
      endloop.
    Regards
    Chinnaiya P

  • Search help for a  select options

    Hi ,
    I need to place a search help for a select-options field on my report selection screen. It should work for a z-table field . I can create a search help for the Z-table field , but I do not know how to make it available for the select-options.
    Thank you .

    hi Krish,
    SELECT OPTIONS ... MATCHCODE OBJECT name_of_search_help.
    hope this helps
    ec

  • Search help for a field using a selection method which has a text table.

    Hello all,
    I am trying to create a search help for one of the fields in a structure say RFCDEST. Now for this i am giving the selection method as the DB table where all the RFCDEST are maintained. However there is a text table which is also comes up for this selection method and the description of the filed RFCDEST is in that text table and the description is not stored in the main table which i specified as the selection method.
    My query is that on F4 now all the rfc destinations are being shown however the description i am not able to show them because there is no field in the table specified in the selectionmethod which hold s the description but instead it is there in the text table, how can i fetch the description from there and display in the search help.
    Warm Regards,
    Naveen M

    look at search help FC_RFCDEST. that problem has already been solved with this search help.

Maybe you are looking for

  • Find the Number range

    Hi all; Can any one help me on this issue !! How to find the Number Range for Customer / Venodor. we have already assign the Number range and how to find the next availabilty number. I .e   I need the next  Availability  number for  Customer/ Vendor

  • Default file browser application in Gnome 3.2

    Hello I'm currently running Gnome 3.2 and like it quite a bit. But I have one annoying issue, somehow gnome thinks Pogo (my music player) is the default application for opening folders so when I plug in an USB device it asks me if I want to open it u

  • Set an array with undeterminate size

    I should know this by now, but go figure. If I want to set up an array of Strings, yet I do not know how many Strings I am going to stick in it, how would I do so? For example, if I want to create an array myArray, and I do not know whether I am goin

  • Labview signalexpress extract part of the data

    Hi, I'm using signalexpress 2.0 and I was wondering how I can take data I've recorded and remove parts to leave with with just a certain bit I'm interested in.

  • Matl Assgnment in Routing

    Hi,       What is the use of material assigment option given in routing Regards Prakash B.