API for Desktop search

Hi ,
Can some one let me know if there is any API available for searching files which contain specific words in a particular directory?
My objective is to get the files that contain a string from a directory.In short it should work similar to the windows search which lets you search for files containing specific words
Is there any API available which lets me do this?

Not in standard Java. There may be 3rd-party code, or you could shell out to the os-specific method(s) using either the Runtime or (preferably) ProcessBuilder class.

Similar Messages

  • Using Java API for integer search

    I have an integer array and need to check whether a given integer is in the array or not repeatedly. If I need to code by myself, I likely would sort the array first and apply binary search against the sorted array. Since Java already provides some APIs to achieve this goal, I am wondering what is a combining API set for the fastest operation.

    vwuvancouver wrote:
    I have an integer array and need to check whether a given integer is in the array or not repeatedly.How many integers? What is the range?

  • APIs for Search service

    Post Author: prabhanjana
    CA Forum: JAVA
    Hi All,
    Please let me know is there any APIs in java available for programming the search service of BO Enterprise Productivity Pack.
    I have to develop the custom JSP search screen which should accept the inputs from user and calls the Search facility of BO.
    Please help me in this regard.
    Regards,
    Prabhanjana

    Post Author: Ted Ueda
    CA Forum: JAVA
    The search service uses a scheduled program to index contents on Enterprise, and another to search the index for matches to search requests.There currently are no public APIs for the Search Service.Sincerely,Ted Ueda

  • Looking for a "desktop search" app

    I am using kde, and I am searching for a desktop search app that uses a database and searches within common filetypes.  I've tried a couple so far, and haven't found what I'm looking for:
    kerry/beagle:WAAAY too much bloat; creates ~2gigs of logs per day, once crashed and started loading my filesystem with useless data.
    strigi/clucene: tried it, didn't really work, settings kept on resetting to default.
    I am looking for something that doesn't have heavy gnome dependencies.
    Any suggestions / what are you using?

    Next one...
    RECOLL
    Depends only on Qt and xapian-core (from community).
    All its dependencies are in official repos except for libtextcat and xapian-core (both in community, however).
    Src download is 850Kb, and since the package in [community] is outdated, I built one of my own:
    Targets: recoll-1.90-1 
    Total Package Size:   0.9 MB
    Total Installed Size:   2.6 MB
    Backend:
    It also uses the xapian backend.
    It can run as a daemon that uses FAM or inotify to provide continuous monitoring/indexing, but the docu says it's probably better to run a cronjob.
    While Pinot was using an xml config file, Recoll has a very detailed set of plaintext config files and it can maintain several indexes in parallel (e.g. one with monitoring and one with cronjob indexing).
    plaintext, html and email are handled internally, and for other file types you have to resort to external utilities again, of which unrtf is in community, pstotext is only in AUR and I didn't find id3lib/id3info at all.
    Again, extension is possible. Here you have several steps which take resources and are slightly more complex to set up than in pinot, but probably allow more fine-grained tweaking: you have a mimeconf configuration where you associate mimetype and filter ('application/pdf = exec rclpdf'), you have an assortment of filters ready in /usr/share/recoll/filters, you have a mimemap config file where you can associate filenames/endings and mimetypes (Unfortunately it uses a different format from e.g. mutt's mime.types, but it also includes special, recoll-only settings - like exclude certain files from indexing or associate files with a certain name with a different mimetype when they're in another direcory)
    Search:
    Recoll has its own (qt, non-kde) GUI and is only adressable therewith, thus not integrated with any of the other frontends. (Export for pinot, which should be able to access recoll's xapiandb...)
    You can use proximity and phonetic search, stem expansion and glob/regex expressions. And you can specify search criteria by metainfo (author, subject, keywords). AFAICT, Recoll does not (yet) understand queries that conform to Xesam specs, neither RDF.
    Recoll remembers the last few searches that you performed. You can use a combobox to recall them. However, only the search texts are remembered, not the mode (all/any/file name). (Also documents actually pre-/viewed are remembered.)
    Typing Esc Space while entering a word in the simple search entry will open a window with possible completions for the word. The completions are extracted from the database.
    Double-clicking on a word in the result list or a preview window will insert it into the simple search entry field.
    Search results formatting can be formatted freely with a qt-html expression per default they display several occurancies of the search term along with their respective, (very) limited context. They can be opened either with a mimeview configuration similar to the mimemap file from above or with xdg-open. Or you can view them in an external preview window (which has an incr. search feature). (You have icons for file types but no thumbnails.)
    Experiences:
    System seemed to me to not be so very sluggish when it did the indexing.
    The same directory with ~3100 files, mostly pdf, a few doc and html files, weighing in at 1.5Gb. was indexed in
    real    15m13.378s
    user    8m47.466s
    sys     3m33.439s
    and additional stem databases for german and french took another 50 secs.
    du -h:
    14M     ./xapiandb/stem_english
    15M     ./xapiandb/stem_de
    13M     ./xapiandb/stem_fr
    236M    ./xapiandb
    246M    .
    Recoll UI started up quickly and results were returned almost instantaneously. (Not a complicated search expression, tho) I have not yet tested for complicated expressions or a test search for a term that occurs only rarely, so I cannot tell if the small db size has its drawbacks.
    So these are still open questions:
    [*] monitoring-mode performance impact?
    [*] search expression options: RDF ?
    [*] search results: how accurately?
    [*] attitude towards Xesam and offering services to other frontends?
    What I find interesting is its configurability, and the small db size (well, as of now I have only pinot to compare it with, so maybe it's not so extraordinary after all).
    (Next will be Tracker...)

  • Search API for Org Unit

    Hi,
      Is there any API/ FM to search for OrganisationUnits based on their Name/ Address?
    Best regards, Girish

    hi
    try using
    RH_SEARCH_ORGUNIT
    regards
    Manish
    Reward points if helpful

  • API for search profile options-R12.

    Is there any API for searching profile options? (R12)
    Using ibe_customer as the default responsibility.How to filter profile option search using organization , responsibility and different access level?
    Edited by: Ep on Aug 29, 2012 11:57 PM
    Edited by: Ep on Aug 29, 2012 11:58 PM

    hi ,
    You can search the table that profiles options are saved,Using the application id in that table ,you have query it....

  • Searching Communications API for Windows

    Hello,
    I?m looking for the Communications API for Windows XP. At the Downloadcenter I?ll get only a Version named "Generic" - but this doesn?t work with Windows XP.
    I think the name off the File have to be "javacomm20-win32.zip"; but I can?t find it. Could anyone help me?
    Joachim_de

    Check this thread:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=698876

  • Adobe air with flex, file new, open and save for Desktop software program

    I already have a headache from all the searching. I cannot believe this to be such a confusing topic as every software program we create must be able to save user input, right.
    Here is the problem:
    Novel writing software program Main window has tabnavigator with four navigatorcontent pages 1. characters, 2. worlds, 3. objects, 4. Editor
    Each navigatorcontent page has user input fields in the form of textinput component, textarea component, richtexteditor component, etc.
    problem 1:
    The user needs to be able to open a new project and give it a name and state where it must be saved. All user input in the Novel writing software program must be attached to the file name the user specified - cannot give sample code cause I don't even know where to start looking anymore.
    Problem 2:
    If the user has now defined a new project name, all his input from the different input components has to be compiled into a single file that can be saved. (Dan Pichelman gave me a satisfactory answer on using the file.borwseforsave funtion.) That makes sense, but I first need to get all the user input into that single file. I was convinced that it must be an xml file and that there would be a guide on how to do this but...
    Problem 3:
    This brings me to another problem. All the pages I've researched so  far tell me how to load data from an xml file into a component, but not how to write the text from the component into the xml file. And this xml file cannot be the prefs file in the storage directory, it has to be named by the user and then after filling in all his text in the different tabs of the software, must be saved in this xml file and saved where the user chooses.
    Problem 4:
    now that the user put in his text and it is written to an xml file that he has named and set the path to, he goes on vacation and in two weeks opens his saved file to work on his project again. All the data that was stored in the xml must now be written back into the different user input components so he can continue working on his project, truth be told, there are some samles and tutorials on this subject, but again from only a single page perspective not a multiple tab perspective.
    Problem 5:
    Now the user has deleted and/or changed some text he put in when he started, he wrote some more text in the textareas and texteditor and he clicks the file - save button. The xml file or whatever needs to be used must be updated and saved with all the changes overwriting the old file.
    Problem 6:
    The data entered by the user will end up being a book of say 400 pages. This data will obviously be mostly in the richtexteditor component, so whatever method of saving is used, database or xml or whatever, needs to be able to contain all this data.
    Thought, if you are working with for instance, microsoft powerpoint, it has multiple pages all containing different user inputs and when you click flie - save, it saves all that input into one file. When I as a user opens that saved file it loads all that content back into its place and I can change and manipulate the input and save it again. I would have thought this would be one of the first things adobe or any other software would teach as this is what sofware programs are all about. But alas, the tutorials on this subject for adobe air for Desktop application is extreeeeemely rare.
    My promise is, if someone can help me with this or there is a tutorial out there that covers this properly I  will write a tutorial on this for other newbies as I progress step by step.  
    Pleeeeeeease help this ignorant novice
    Regards

    to save a file you would do something like:
    FileWriter fw = new FileWriter( fileName );
    textComponent.write( fw );
    fw.close();See the JFileChoose API for filtering files by extension. The API gives an example.

  • I need API for Narrator in Ease of Access

    Hi,
    I need to see if Narrator accessibility is on/off. (Only on WP 8.1)
    How can it be done? Is there any API for this?
    I was googling for a long time and can't see anything.

    While I recognize the potential for abuse, an API for determining whether or not Narrator is running would be very useful for developing accessible apps that work across devices.
    In my limited experience developing the test application for a Cordova accessibility plugin on Windows Phone 8.1, I can provide a couple good reasons for providing a way to detect if Narrator is running.
    Aria live regions simply don’t appear to work on Windows Phone 8.1. If you test any web pages that use live regions, Narrator on Windows Phone fails to announce changes to the live region. 
    Live regions seem to work on the desktop, but are harder to work with for providing text to speech for complex interactions than the Windows.Media.SpeechSynthesis API. For example:
    It’s difficult to stop speaking a live region update. Once, a screen reader starts speaking a string from a live region, removing the text node or replacing it with an empty string will not stop speaking that string.
    I’ve implemented "speak" and "stop" methods to speak or stop speaking a string of text in my Cordova accessibility plugin for Windows, but without knowing whether or not Narrator is on or off, the methods will work all the
    time, even when Narrator is off, which is not desirable.
    Cordova apps are often developed to use gestures for navigation. The pointer event listeners that respond to these gestures may not be accessible when Narrator is active, in which case is important to provide an alternate mode of navigation. Windows
    Phone already provides an example of this; if you scroll to the bottom of the start screen, there is a button that navigates to the application list, which may be there for accessibility, because the two-finger swipe gesture to access the application
    list may not be easily discoverable to someone using Narrator.
    Here are links to the test application and mobile accessibility plugin for reference:
        Test App: https://github.com/majornista/phonegap-mobile-accessibility-test
        Plugin: https://github.com/majornista/phonegap-mobile-accessibility-test

  • ABAP API for MDM work flow

    Hi SDN,
    I need some information related to ABAP API for MDM workflow. I did search in SDN and I found one solution in a thered posted on Jul-2008.
    ABAP API - MDM Workflow execute
    My dought is: Do we have any ABAP API for call MDM work flow. Please provide me the solution ASAP. Apprciate for your immediate response.
    Regards,
    Kumar.

    Hi LAKSHMAN ,
    To answer your question specifically
    Using ABAP api you cannot call MDM workflows as of mdm 5.5 there are no functions specific to calling MDM workflows in ABAP.If you want to implement workflows on ABAP side you need to go for SAP ECC workflows which is a different topic than MDM>
    To call MDM workflows over the Java stack ie WAS (SAP portal),You have 2 ways
    - UWL
    - Guided Procedures.
    - UWL is a way of calling MDM workflows on EP.Wherein the workflow design will be done in MDM and it will only be called in portal using appropiate connections and configurations.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771f1a61-0e01-0010-daa9-93a52905da09 (uwl)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45 (UWL config)
    - GP is a way where by you need to design the entire workflow on SAP portal the logic can be pertaining to MDM but the design is completely on portal using webdynpros and api.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831  (Guided procedures)
    Enterprise Master Data Management   (EP Guided)
    To know more on ABAP api and its provider classes you can refer the below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44  (abap api webinar)
    Re: Abap api error (Abap api provider classes Forum)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • I like to use Google for my search engine but it has been replaced with Amazon. How do I get google back?

    In the upper right corner of the Firefox screen, there is a box for a search engine search. I used to have google there, but recently it somehow changed to Amazon.com. How do I switch it back to google?

    OK, might want to make that change in your profile to get faster answers to future questions. If you leave the "iOS6" that's now in your profile, helpers will have to ask the OS question every time you post, slowing your getting help you deserve. Note the level of detail I was able to cram in my Equipment profile (at the bottom of this post).
    I don't  have 10.7 on any of our Macs but I suspect a system update may have removed that iPhoto option. However, you can still get to your iPhoto files if 10.7 is anything like 10.8.
    In System Preferences > Desktop and Screensaver > Screensaver tab, there is a "Source" dropdown menu direct under the preview pane. Click it and select "Choose Folder..":
    That gives you a dialog box that should point to your "Pictures" folder. Within that is your iPhoto library. Select it and see if that gives you access to your images.

  • A2DP API for bluetooth?

    Hi,
    I want to send a sound to a a BT module. This module is like a headset.
    I searched everywhere for a BT example for WP8 but I can't find any help.
    I have this code:
    StreamSocket socket = new StreamSocket();
    await socket.ConnectAsync(peer.HostName, "1");
    Why "1"? In the sample, RFCOMM is selected. If I want A2DP, what should I write?
    Another question is: is there an API for A2DP? The protocol is really hard to understand. And I don't know where to begin if I have to write all without any library... All with socket.OutputStream()?
    Hope someone can help me with this problem.
    Thank you!
    Adriano

    Thank you very much Mark,
    I was afraid, that it was not possible.
    WP8 has the A2DP and  AVRCP protocol, but developers have to write again the entire protocol that is already present in the system to communicate with BT speakers?
    I want to send 2 audio streams to 2 BT-speakers at the same time. Do you think, is it possible with Windows Phone 8?
    From your links, I saw that there is a way to send data to the device without RFCOMM.
    Old code:
    StreamSocket socket = new StreamSocket();
    await socket.ConnectAsync(peer.HostName, "1");
    New code:
    StreamSocket socket = new StreamSocket();
    await socket.ConnectAsync(peer.HostName, "{0000110D-0000-1000-8000-00805F9B34FB}");
    DataWriter dataWriter = new DataWriter(socket.OutputStream);
    DataReader dataReader = new DataReader(socket.InputStream);
    AdvancedAudioDistributionService: GUID = {0000110D-0000-1000-8000-00805F9B34FB}
    AudioSourceService: GUID = {0000110A-0000-1000-8000-00805F9B34FB}
    HeadsetService: GUID = {00001108-0000-1000-8000-00805F9B34FB}
    I will try with this.
    Thank you again for the links. Once I got it, I will insert a little example on this topic. Maybe it can help someone.
    Adriano

  • Windows Desktop Search 4.0 How do I Format the Date Column in the Results?

    Is there a way to modify the date column in the Results pane of Windows Desktop Search 4.0?
    It's running on a Windows 2003 Enterprise server.
    I have users that need to modify files that arrived today and yesterday after 5:00 PM.  The date column only displays the time on files with today's date.  Is there some registry setting I can tweak to get this column to always show Date and Time?
    Cordially,
    RN

    Hi,
    For the Windows Desktop Search, i think you may ask in:
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsdesktopsearchhelp
    Regards.
    Vivian Wang

  • Available APIs for process and package management

    Hello All and welcome to my Hello All:
    Welcome to my inaugural post. I am a complete noob to Solaris (although I have been using Linux for 5+ years) and am in the process of trying to get a handle on what local C/C++ APIs (if any) are available for management. Specifically, I am looking to find out about process and package management.
    For process management, basically I would like to know is there some kind of interface to the the prstat application (ie. Memory and CPU utilization). Does something like this exist?
    For package management, I am looking for the ability to add, remove, and query the package �database�. Correct me if I am wrong, but the Solaris package �database� seems similar to that of a Debian system (at least from the perspective that the informational files are stored as plain text in a well-defined directory [ie /var/sadm/pkg/]).
    I have installed Solaris 10 on an x86 machine with a full installation; however, of the installed development kits (listed below) nothing jumped out at me.
    -bash-3.00# ls -1d /var/sadm/pkg/*devel
    /var/sadm/pkg/SUNWaspell-devel
    /var/sadm/pkg/SUNWevolution-devel
    /var/sadm/pkg/SUNWevolution-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-base-devel
    /var/sadm/pkg/SUNWgnome-a11y-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-reader-devel
    /var/sadm/pkg/SUNWgnome-a11y-speech-devel
    /var/sadm/pkg/SUNWgnome-audio-devel
    /var/sadm/pkg/SUNWgnome-base-libs-devel
    /var/sadm/pkg/SUNWgnome-camera-devel
    /var/sadm/pkg/SUNWgnome-common-devel
    /var/sadm/pkg/SUNWgnome-component-devel
    /var/sadm/pkg/SUNWgnome-config-devel
    /var/sadm/pkg/SUNWgnome-desktop-prefs-devel
    /var/sadm/pkg/SUNWgnome-file-mgr-devel
    /var/sadm/pkg/SUNWgnome-hex-editor-devel
    /var/sadm/pkg/SUNWgnome-img-editor-devel
    /var/sadm/pkg/SUNWgnome-libs-devel
    /var/sadm/pkg/SUNWgnome-media-devel
    /var/sadm/pkg/SUNWgnome-panel-devel
    /var/sadm/pkg/SUNWgnome-pilot-devel
    /var/sadm/pkg/SUNWgnome-print-devel
    /var/sadm/pkg/SUNWgnome-project-devel
    /var/sadm/pkg/SUNWgnome-terminal-devel
    /var/sadm/pkg/SUNWgnome-text-editor-devel
    /var/sadm/pkg/SUNWgnome-vfs-devel
    /var/sadm/pkg/SUNWgnome-wm-devel
    /var/sadm/pkg/SUNWgnutls-devel
    /var/sadm/pkg/SUNWjpg-devel
    /var/sadm/pkg/SUNWlibexif-devel
    /var/sadm/pkg/SUNWlibgcrypt-devel
    /var/sadm/pkg/SUNWlibpopt-devel
    /var/sadm/pkg/SUNWmozilla-devel
    /var/sadm/pkg/SUNWmoznspr-devel
    /var/sadm/pkg/SUNWmoznss-devel
    /var/sadm/pkg/SUNWogg-vorbis-devel
    /var/sadm/pkg/SUNWopenjade-devel
    /var/sadm/pkg/SUNWopensp-devel
    /var/sadm/pkg/SUNWpcsclite-devel
    /var/sadm/pkg/SUNWpng-devel
    /var/sadm/pkg/SUNWpostgr-devel
    /var/sadm/pkg/SUNWPython-devel
    /var/sadm/pkg/SUNWTiff-devel
    I've placed orders for Solaris Internals and Solaris Performance & Tuning (that should arrive tomorrow), but I was hoping that someone could give me a gentle push (or perhaps a swift kick) in a general direction. :)
    Thanks.

    For process management, basically I would like to
    know is there some kind of interface to the the
    prstat application (ie. Memory and CPU utilization).
    Does something like this exist?Not prstat (although you could 'truss' it and see some of what it's doing to collect the information). kstat is available with a C interface and through perl/shell. It has several CPU fields. It's certainly useful for monitoring, but read-only. I'm not sure what you're looking for in terms of "management".
    Also 'dtrace' can provide tons of dynamic information, but that's not necessarily what you're looking for.
    For package management, I am looking for the ability
    to add, remove, and query the package �database�.
    Correct me if I am wrong, but the Solaris package
    �database� seems similar to that of a Debian system
    (at least from the perspective that the
    informational files are stored as plain text in a
    well-defined directory [ie /var/sadm/pkg/]).Yes, although it's based on the SysV packaging system. I don't believe there's any API for it outside of the 'pkg*' utilities.
    Darren

  • About the Error after applying product key for bing search rest service

    For the Project Siena I ve created the product key for Bing search rest service and i applied that product key which is valid even though i got the error when i click TRY button .can anyone please help me to find the solution
    There was an error in retrieving sample data. Error : Unable to reach service. Please check if your service connector configuration is valid and you have network connectivity

    Hello,
    Thanks for your post. I am jotting down few steps to get the Bing search account key (you may have completed many/all of these).
    To add Bing Search Service, go to
    https://datamarket.azure.com/account/datasets and search for "Bing Search API". After you have subscribed to the service, navigate to "My Data" and click on Use. Click on Show and copy the
    Primary Account Key information.
    Note if your key contains a special character like / or = then double clicking on the content will copy the key partially.
    Make sure you have copied the full key correctly. If the is incorrectly pasted in Siena's Primary Account Key field, you will get the error below:
    This is similar to the error you have posted. Since the Primary Account Key is masked you can never be sure the contents are correct. It's best to clear the field and paste the key again.
    If you still face the issue, please post your machine configuration (x86/OS) information.
    Hope this helps,
    -Karthik
    This posting is provided "AS IS" with no warranties and confers no rights.

Maybe you are looking for