473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Lucene Keyword field not matching

Hi,
I have indexed some information from a database using the dotNet
port of Lucene. If I index a field as a keyword then Lucene does not
pick it up when searching. If I index the field as text then Lucene
finds it. Here is a sample of the code. If anyone can see why please
e-mail me at th**********@yahoo.com. This is somewhat urgent.

Indexer:
Document doc = new Document();
doc.Add (Field.Text ("director_name",
dRow["director_name"].ToString())); // Works
doc.Add (Field.Keyword ("director_name",
dRow["director_name"].ToString())); // Does not work

Searcher:
Query qry = QueryParser.Parse ("director_name:Donovan", "", new
StandardAnalyzer());
m_hits = m_indexSearcher.Search (qry);

I am using a StandardAnalyzer for both indexing and searching.

Cheers,

JD

Nov 17 '05 #1
0 1246

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Jenkins | last post by:
Hi, Wonder if someone could help me. I'm looking for a PHP/MySQL based search engine that can search flat files i.e. build it's own index from flat files. I've used Apaches' Lucene before...
2
by: david | last post by:
Hi all, I have two tables: workgroups (wg_id, wg_name) workgroups_keywords (wgk_wg_id, wgk_keyword) Each workgroup has an associated list of one or more keywords. What I want do to at...
1
by: geronimo_me | last post by:
Hi, I have a small problem I am trying to check if field1 in Table1 matches Field2, Field3 or Field4 in Table2: ie Record 1 Table1 Field1 = ABC Table2
0
by: dashprasannajit | last post by:
package djvusearching; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.lucene.analysis.cjk.CJKAnalyzer; //import...
1
by: keith_rhodes | last post by:
Hi, all. I know that there is a way of using JavaScript to call a Java method, and for the JavaScript to collect some sort of response from the Java, as I had a page working a few years ago that...
0
by: Mirnes | last post by:
I hope someone is using Lucene.net and can help me to make it work since (in my opinion) documentation for Lucene.net is poor or I'm used to different kind of documentation. Can someone explain...
3
by: amitbagaria | last post by:
Hello, i'm trying to compile "InMemoryExample.java" of lucene search but i'm getting these errors!! "C:\Java\ant_home>javac InMemoryExample.java InMemoryExample.java:82: cannot find symbol...
4
by: sliverdigger | last post by:
I have been experimenting with Zend/Php/Lucene. I have used Lucene extensively as Java in Tomcat Servlets. Zend's php Lucene works the same way, but it is much slower to index for some...
0
by: davidvikimca | last post by:
Dear sir, I am trying some simple programs for search using lucene. I am trying to use SnowballAnalyzer in my search for "English" Language. I am using lucene-2.4.0 . On execution...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.