Re: Storing phrases in index

2008-04-10 Thread palexv

Thanks!
Can you help me to get ShingleFilter class. It is absent in version 2.3.1.
How can I get it?


Mathieu Lecarme wrote:
 
 palexv a écrit :
 Hello all.
 I have a question to advanced in lucene.
 I have a set of phrases which I need to store in index. 
 Is there is a way of storing phrases as terms in index?

 How is the best way of writing such index? Should this field be
 tokenized?
   
 not tokenized
 What is the best way of searching phrases by mask in such index? Should I
 use BooleanQuery, WildCartQuery or SpanQuery?
 il you search complete phrase, just use Term, if you search part of 
 phrase, use ShingleFilter.
 
  
 How is the best way to escape from maxClauses exception when searching
 like
 a*?
   
 indexing indexed term.
 
 M.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Storing-phrases-in-index-tp16585658p16603707.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Storing phrases in index

2008-04-10 Thread Mathieu Lecarme

palexv a écrit :

Thanks!
Can you help me to get ShingleFilter class. It is absent in version 2.3.1.
How can I get it?
  
It's in the SVN version. You can backport it, are building your own, 
with a Stack.


M.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Storing phrases in index

2008-04-10 Thread palexv

Please, can you give me a simple example of how to use ShingleFilter?
Thanks a lot!


Mathieu Lecarme wrote:
 
 palexv a écrit :
 Thanks!
 Can you help me to get ShingleFilter class. It is absent in version
 2.3.1.
 How can I get it?
   
 It's in the SVN version. You can backport it, are building your own, 
 with a Stack.
 
 M.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Storing-phrases-in-index-tp16585658p16609057.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Storing phrases in index

2008-04-10 Thread Chris Hostetter

: To: java-dev@lucene.apache.org
: Subject: Storing phrases in index

http://people.apache.org/~hossman/#java-dev

Please Use [EMAIL PROTECTED] Not [EMAIL PROTECTED]

Your question is better suited for the [EMAIL PROTECTED] mailing list ...
not the [EMAIL PROTECTED] list.  java-dev is for discussing development of
the internals of the Lucene Java library ... it is *not* the appropriate
place to ask questions about how to use the Lucene Java library when
developing your own applications.  Please resend your message to
the java-user mailing list, where you are likely to get more/better
responses since that list also has a larger number of subscribers.


-Hoss


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Storing phrases in index

2008-04-09 Thread palexv

Hello all.
I have a question to advanced in lucene.
I have a set of phrases which I need to store in index. 
Is there is a way of storing phrases as terms in index?

How is the best way of writing such index? Should this field be tokenized?

What is the best way of searching phrases by mask in such index? Should I
use BooleanQuery, WildCartQuery or SpanQuery? 
How is the best way to escape from maxClauses exception when searching like
a*?
-- 
View this message in context: 
http://www.nabble.com/Storing-phrases-in-index-tp16585658p16585658.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Storing phrases in index

2008-04-09 Thread Mathieu Lecarme

palexv a écrit :

Hello all.
I have a question to advanced in lucene.
I have a set of phrases which I need to store in index. 
Is there is a way of storing phrases as terms in index?


How is the best way of writing such index? Should this field be tokenized?
  

not tokenized

What is the best way of searching phrases by mask in such index? Should I
use BooleanQuery, WildCartQuery or SpanQuery?
il you search complete phrase, just use Term, if you search part of 
phrase, use ShingleFilter.


 
How is the best way to escape from maxClauses exception when searching like

a*?
  

indexing indexed term.

M.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]