You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Mathias Keilbach <ma...@web.de> on 2006/05/16 09:02:44 UTC

Analyzer which distributes tokens to many fields

Hi!

I'm going to create a small application with Lucene, which analyze diffenrent Strings. While analyzing the strings, patterns (like emails or urls) shall be sort out and saved in a seperate index field.
I'm not sure if I can handle this with a self implemented Analyzer class. Afaik you can't distribute single tokens to different fields while analyzing a field.
At the worst I have to distribute the tokens in a first step and then analyze them in a second step.
Have anyone an idea how to handle this case with lucene in a better way than mine?

Thankfull for any advice!

So long!

Mathew
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Extracting citation graph of ACM digital library and others DLs.

Posted by Trung <ng...@yahoo.com.vn>.
Hello everybody,

I have an question. It's not related to Lucene, I
know, but I post it here because many of you have
excellent knowledge in computer science and I hope
that you can help me. 

My question is how I can extract citation graph of ACM
digital library (or any important digital library in
computer science if you know). Given a citation graph
and the name of a predefined document, we can know
documents cited by this  predefined document and
documents that cite it. In my knowledge, ACM donot
provide API to access its bibliography database like
CiteSeer.

Thank you very much,
Trung.

__________________________________________________
Bạn Có Sử Dụng Yahoo! Không?
Mệt mỏi vì thư rác?  Yahoo! Thư có chương trình bảo vệ chống thư rác hữu hiệu nhất trên mạng 
http://vn.mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Analyzer which distributes tokens to many fields

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On May 16, 2006, at 3:02 AM, Mathias Keilbach wrote:
> I'm going to create a small application with Lucene, which analyze  
> diffenrent Strings. While analyzing the strings, patterns (like  
> emails or urls) shall be sort out and saved in a seperate index field.
> I'm not sure if I can handle this with a self implemented Analyzer  
> class. Afaik you can't distribute single tokens to different fields  
> while analyzing a field.
> At the worst I have to distribute the tokens in a first step and  
> then analyze them in a second step.
> Have anyone an idea how to handle this case with lucene in a better  
> way than mine?

Yeah, an Analyzer is not capable of splitting terms into separate  
fields dynamically.  As you've surmised, you'll need to _parse_ your  
text prior to analyzing it.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org