Thanks Pasha for the link, but right now I am interested in KWIC and not
highlighting part.. can you help we start of with KWIC.
Thanks
Pasha Bizhan <[EMAIL PROTECTED]> wrote:
Hi,
> From: mahaveer jain [mailto:[EMAIL PROTECTED]
> I am using lucene to index and search my app. Ti
Hi All,
I am using lucene to index and search my app. Till
date I am just showing file name or title based on my
application. We want to show, pharse that contain the
keyword searched.
Has anybody tried this ? Can someone help me start
this ?
Thanks
Mahaveer
__
Hi,
I have a application where I know I will have duplicate ID's. When I search
these duplicate ID's will it search content in both the files ?
For Example :
Id = Mahaveer, Content = Jain India
Id = Mahaveer, Content = Lucene Test
Now when I search for India Test will it return both the co
Hello All,
I am looking out to implement sorting in my lucene application. This is what my
code look like.
I am using StandardAnalyzer() analyzer.
Query query = QueryParser.parse(keyword, "contents", analyzer);
Sort sortCol = new Sort(new SortField("date"));
// date is one of the field I
ot;456 StandardAnalyzer true"));
index.addDocument( d );
index.optimize();
index.close();
Query objQuery = null;
objQuery = QueryParser.parse("John", "name"
, objAnalyzer);
Hits objHits = objIndexSearcher.search(objQuery);
for (int nStart = 0; nStart < objHits.length
Thanks Paul,
You idea seems to be good. I ll try that. I have one more question. Should the
new key what I create have to be keyword ? or Can it be just a column in the
index ?
Mahaveer
Paul <[EMAIL PROTECTED]> wrote:
On Thu, 30 Dec 2004 08:36:04 -0800 (PST), mahaveer jain
wrote:
try this
objQuery = QueryParser.parse("John", "name" , objAnalyzer);
or
objQuery = QueryParser.parse("Engineer", "designation", objAnalyzer);
I should work.
The second parameter is the column name you pass. So if you are search for
"name", it will look for only name column.
Hope this help
-0800 (PST), mahaveer jain
wrote:
> Hi All,
>
> I am using lucene for my DB indexing. I have 2 columns which are Keyword.
> Now I want to delete my index based on this 2 keyword.
>
> Is it possible ? If no. What is other alternative ?
>
> Thanks
> Mahaveer
>
>
Hi All,
I am using lucene for my DB indexing. I have 2 columns which are Keyword.
Now I want to delete my index based on this 2 keyword.
Is it possible ? If no. What is other alternative ?
Thanks
Mahaveer
-
Do you Yahoo!?
Yahoo! Mail -
Hi all,
I have implemented lucene search for my documents and db successfully.
Now my problem is, the index i created is indexing to my local disk, i want the index
to be created with reference to my server.
Right now I index C:/tomcat/webapps/jetspeed/document, but I want to index wrt,
/j
g.startsWith("C:\tomcat\webapps\Root\Group2")
{
doc.add(Field.Text("group", "Group2"));
}
doc.add(Field.Text("content", getContent(f)));
Ir.addDocument(doc);
Then you can search in group1 with query like that :
group:Group1 AND rest_of_the_query.
--
uld be either
"group1" or "group2".
Or you could use the path to your files ...
-Message d'origine-
De : mahaveer jain [mailto:[EMAIL PROTECTED]
Envoyé : mardi 14 septembre 2004 17:49
À : [EMAIL PROTECTED]
Objet : RE: Help for text based indexing
I am clear with l
etal indexing is required
for small or medium amout of data.
-Message d'origine-----
De : mahaveer jain [mailto:[EMAIL PROTECTED]
Envoyé : mardi 14 septembre 2004 17:22
À : [EMAIL PROTECTED]
Objet : Help for text based indexing
Hi
I have implemented Text based search using lucene. I
Hi
I have implemented Text based search using lucene. I was wonderful playing around with
it.
Now I want to enchance the application.
I have a Root folder, under that I have many other folder, that are group specific,
say (group1, group2, .. so on). The Root folder is in C:\tomcat\webapps\Roo
14 matches
Mail list logo