Java lucene

Ads

 
 

Share on Google+Share on Google+

baya
Java lucene
0 Answer(s)      7 years ago
Posted in : Java Beginners
Build your own search engine.
how can i implement lucene code in my GUI interface of search engine so that my search engine interface can fully functional for searching text files in my PC.
this is my GUI code for my search engine.
i am using eclipse to do this task.

package org.apache.lucene;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class SearchEngines extends JFrame {

JButton btnsrc;
JButton btnidx;
JTextField qry;
JLabel label;
JLabel result;
JRadioButton poor;
JRadioButton average;
JRadioButton good;

public SearchEngines () {
Container pane = getContentPane();
pane.setLayout(new FlowLayout());

JPanel panel1 = new JPanel();
panel1.setLayout(new FlowLayout());

btnsrc = new JButton("Search");
label = new JLabel("Query:");
qry = new JTextField(20);
btnidx = new JButton("Index");

panel1.add(label);
panel1.add(qry);
panel1.add(btnsrc);
panel1.add(btnidx);

JPanel panel2 = new JPanel();

result = new JLabel("Search Result:");
panel2.add(result);

ButtonGroup grp = new ButtonGroup();
poor = new JRadioButton("Poor");
average = new JRadioButton("Average");
good = new JRadioButton("Good");

panel2.add(poor);
panel2.add(average);
panel2.add(good);


grp.add(poor);
grp.add(average);
grp.add(good);

pane.add(panel1);
pane.add(panel2);

}
public static void main (String []args)
{
SearchEngines frame = new SearchEngines();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setTitle("SEARCH ENGINE");
frame.setSize(500, 400);
frame. setVisible(true);
}
}

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Java lucene
Java lucene  Build your own search engine.how can i implement lucene code in my GUI interface of search engine so that my search engine interface can fully functional for searching text files in my PC.this is my GUI code for my
Version of lucene>lucene dependency
List of Version of lucene>lucene dependency
Advertisements
Artifacts of lucene
List of Artifacts of lucene maven depenency
Maven Dependency lucene >> 1.2
You should include the dependency code given in this page to add Maven Dependency of lucene >> lucene version1.2 in your project
Maven Dependency lucene >> 1.3
You should include the dependency code given in this page to add Maven Dependency of lucene >> lucene version1.3 in your project
Maven Dependency lucene >> 1.3-rc1
You should include the dependency code given in this page to add Maven Dependency of lucene >> lucene version1.3-rc1 in your project
Maven Dependency lucene >> 1.4.1
You should include the dependency code given in this page to add Maven Dependency of lucene >> lucene version1.4.1 in your project
Maven Dependency lucene >> 1.4.2
You should include the dependency code given in this page to add Maven Dependency of lucene >> lucene version1.4.2 in your project
Maven Dependency lucene >> 1.4.3
You should include the dependency code given in this page to add Maven Dependency of lucene >> lucene version1.4.3 in your project
Version of cocoon>cocoon-lucene dependency
List of Version of cocoon>cocoon-lucene dependency
Version of org.apache.lucene>lucene-parent dependency
List of Version of org.apache.lucene>lucene-parent dependency
Version of com.janeluo>lucene-plus dependency
List of Version of com.janeluo>lucene-plus dependency
Version of com.orientechnologies>orientdb-lucene dependency
List of Version of com.orientechnologies>orientdb-lucene dependency
Version of com.snowtide>lucene-pdf dependency
List of Version of com.snowtide>lucene-pdf dependency
Version of cc.wikitools>wiki-tools-lucene dependency
List of Version of cc.wikitools>wiki-tools-lucene dependency
Version of com.gilt>lib-lucene-sugar_2.10 dependency
List of Version of com.gilt>lib-lucene-sugar_2.10 dependency
Version of com.gilt>lib-lucene-sugar_2.11 dependency
List of Version of com.gilt>lib-lucene-sugar_2.11 dependency
Version of com.gilt>lib-lucene-sugar_2.9.1 dependency
List of Version of com.gilt>lib-lucene-sugar_2.9.1 dependency
Version of com.gilt>lib-lucene-sugar_2.9.2 dependency
List of Version of com.gilt>lib-lucene-sugar_2.9.2 dependency
Lucene Search in JSP - JSP-Servlet
Lucene Search in JSP  Hello Sir, I want to Develop lucene - Search engine in Jsp page which can Search full text from XML file..through XML parser.. Example: in Search interface there are one textbox after putting some value
Maven Dependency cocoon-lucene >> 2.1.3
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-lucene version2.1.3 in your project
Maven Dependency cocoon-lucene >> 2.1.4
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-lucene version2.1.4 in your project
Maven Dependency cocoon-lucene >> 2.1.5.1
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-lucene version2.1.5.1 in your project
Maven Dependency cocoon-lucene >> 2.1.6
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-lucene version2.1.6 in your project
Maven Dependency cocoon-lucene >> 2.1.7
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-lucene version2.1.7 in your project
Maven Dependency cocoon-lucene >> 2.1.8
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-lucene version2.1.8 in your project
Maven Dependency lucene-parent >> 3.3.0
You should include the dependency code given in this page to add Maven Dependency of org.apache.lucene >> lucene-parent version3.3.0 in your project
Maven Dependency lucene-plus >> 0.0.2
You should include the dependency code given in this page to add Maven Dependency of com.janeluo >> lucene-plus version0.0.2 in your project
Maven Dependency lucene-plus >> 0.0.1
You should include the dependency code given in this page to add Maven Dependency of com.janeluo >> lucene-plus version0.0.1 in your project
Maven Dependency orientdb-lucene >> 1.7
You should include the dependency code given in this page to add Maven Dependency of com.orientechnologies >> orientdb-lucene version1.7 in your project
Maven Dependency orientdb-lucene >> 1.7.10
You should include the dependency code given in this page to add Maven Dependency of com.orientechnologies >> orientdb-lucene version1.7.10 in your project