This article gives the knowledge about two ways to create a search query: in text or object form using Java search API...."c:\\MyDocuments\\" ; // Creating index Index index = new Index ( indexFolder );...); // Indexing index . add ( documentsFolder ); // Creating subquery...