473,405 Members | 2,294 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,405 software developers and data experts.

DotLucene

Hi

I have the following code which uses Lucene to index documents,
however I want to be able to use lucene to search upon the field
summary (this is a bit of text the user supplies). Should I save the
summary as a seperate file and use lucene to index this as well or is
their another way to get summary to be searchable? In the docs it says

Field.Text(string name, string val) - field value is stored, indexed
and tokenized

This implies that summary should be searchable but it is not

Any thoughts will be much appreciated, many thanks Rippo

....
Document doc = new Document();
StreamReader sr = new StreamReader(path,
System.Text.Encoding.Default);

//add document attributes to index
doc.Add(Field.Text("text", sr));
doc.Add(Field.Text("summary", summary));
doc.Add(Field.Keyword("filename",
Path.GetFileName(path).ToString()));
writer.AddDocument(doc);
sr.Close();

writer.Close();
....

May 21 '07 #1
0 973

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

Similar topics

3
by: in | last post by:
I was reading about the new desktop search tool, Beagle, that will be part of the Suse 9.3 release Wednesday: http://news.zdnet.co.uk/software/linuxunix/0,39020390,39190538,00.htm The cool...
0
by: mirek | last post by:
Hello, I want to delete document from the index. How can I do this? In IndexReader, there is implemented Delete but IndexReader is abstract class, cannot be used directly, so what should I use?...
2
by: Samuel R. Neff | last post by:
What options are available for doing full-text searches of database data without using a database-specific full-text engine? The only option I've found is Google's Search Appliance but it's an...
2
by: Peter Rilling | last post by:
If anyone has experience with DotLucene, then this question might be right up your alley. I have two lists of music titles. Each from a different source. I am trying to match determine...
0
by: Peter Rilling | last post by:
I am working on trying to compare "titles" from two different lists and trying to determine the most likely match. When a similar entry appears in both, the result works well, but what I need to...
2
by: John Bailo | last post by:
This looks like an extremely cool .net project to front end the open source indexer, Lucerne, as an api: http://www.codeproject.com/aspnet/DotLuceneSearch.asp -- Get the new...
2
by: Logan Noyes | last post by:
Can anyone recommend a good, reasonably priced software package for creating search functionality on an ASP.NET site? The site has about 1000 pages and the software package I seek would need to...
3
by: ron.abramson | last post by:
I have been successfully using Java Lucene with various Java, Python and PHP projects, and would like to try more of a native Microsoft approach. My immediate total newbie question is how to call...
3
by: Sasha | last post by:
Has anyone used dtSearch .Net Engine? What was your experience? Would you recommend it others? I am deciding on a .net search engine and would like to hear your opinion. Thank you, Sasha
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.