Adding metadata to Lucene indexes?

2011-11-03 Thread Jochen
input has changed. Regards, Jochen - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Adding metadata to Lucene indexes?

2011-11-03 Thread Jochen
Thanks for the help. Following-up on that, how can I create document that is not indexed and returned by "normal" searches, and retrieve it when I need access to my metadata? There seems to be no reliable "document id" that I can use for this. Regards, Jochen On 2011-

Classic QueryParser, StandardQueryParser, Quotes

2019-10-10 Thread Jochen Barth
uery despite both query parsers refer to the same syntax description. Does StandardQueryParser takes field type into account when building the query? Kind regards, Jochen - To unsubscribe, e-mail: java-user-unsubscr...@luce

Problem with memory utilisation during Lucene search

2005-03-23 Thread Jochen Franke
reduce the memory consumption of Lucene? 3. Does Lucene provide a mechanism to limit the number of concurrent searches or must I implement my own wrapper around the search calls to Lucene? Thanks Jochen - To unsubscribe, e-ma

term frequency normalization

2009-02-03 Thread Jochen Wersdörfer
he tf calculation would be overwriting tf in an own implementation of Similarity like it's done in SweetSpotSimilarity. But the average term frequency of the document is missing. Is there a simple way to get or calc this number? regar

term frequency normalization

2009-02-03 Thread Jochen Wersdörfer
he tf calculation would be overwriting tf in an own implementation of Similarity like it's done in SweetSpotSimilarity. But the average term frequency of the document is missing. Is there a simple way to get or calc this number? regar

Re: Free software for language detection

2009-03-27 Thread Jochen Frey
Lisheng, Here's a package you could take a look at. I have used it in the past and it worked reasonably well. Let me know what else you find and how it works for you. http://www.olivo.net/software/lc4j/ Good luck! Jochen Frey On Fri, Mar 27, 2009 at 9:54 AM, Zhang, Lisheng < li

Re: Support for NumericRangeQuery in QueryParser

2012-06-12 Thread Jochen Hebbrecht
Hi Uwe, Thanks for your answer. The alternative way was already familiar to me, but thanks anyway ;-)! I didn't know the "contrib" folder :-). Thanks for your reply. Kind regards, Jochen PS: I'm Belgian ;-) ... 2012/6/12 Uwe Schindler > Hi Jochen, > > the fle

Refining an existing search of Lucene

2012-06-14 Thread Jochen Hebbrecht
Hi all, I'm searching for a way to reuse a Lucene search. For example, I'm searching for the word "acci". But too many ScoreDocs are returned, and I provide: "accide". Can it reuse the existing search? Or is it just better to create a new and fresh Lucene search? Jochen

Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
e Lucene results to the relation database? Because the view should be rendering the results? Many thanks! Jochen

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi Chris, Yeah! That's a possibility, thanks :-)! Jochen 2012/7/3 Chris Lu > Can you index the rule1 and rule2 fields into the documents, and when > searching with the keywords, also append rule1:foo and rule2:bar to the > query? > > Chris > -

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi Feng, Hmmm, but Document is a Java object? It holds all kinds of other objects like Sets, Lists, Maps, Strings, Doubles, ... Can we store Java objects in a Lucene index? Jochen 2012/7/3 feng lu > and you can add d as a field with STORE and NOT_ANALYZER tag to it if d in > Document

Re: Best practise closing Lucene index

2012-07-03 Thread Jochen Hebbrecht
dles. > > regards > > Torsten > > Am Montag, den 02.07.2012, 15:44 +0200 schrieb Jochen Hebbrecht: > > Hi all, > > > > I currently have a Seam component which is in my session. This component > is > > holding (private attribute) a custom "Lucene object&quo

Re: QueryParser, double quotes and wilcard inside the double quotes

2012-07-04 Thread Jochen Hebbrecht
Thanks Ian, I'll give it a try! 2012/7/3 Ian Lea > You can use the QueryParser proximity feature e.g. "foo test"~n where > n is the max distance you want them to be apart. Or look at the > SpanQuery stuff e.g. SpanNearQuery. > > > -- > Ian. > >

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
ple terms in a range :-( ... What I can do, is to search from "Microsoft" to "Microsoft", this one works. But not the one stated above ... So the question is: can Lucene make a String range query on multiple terms? Kind regards, Jochen 2012/8/20 Ian Lea > This won'

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
Hmm, just thinking. I could split the value on spaces. Then I can say: +TEST:Microsoft +TEST:[Belgium TO Spain] I just tested it, and it seems to work :-) ... 2012/8/20 Jochen Hebbrecht > Hi Ian, > > Thanks for your answer! > Well, my example might have been not so clear. Her

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
Hehe Ian, our mails just crossed. I was thinking in the same way! :-). Thanks for your reply! 2012/8/20 Ian Lea > Jochen > > > No, I don't think that Lucene can make a String range query on > multiple terms. For your Microsoft example you could build a query > wit

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
on as well! Kind regards, Jochen Op 20/08/12 18:57 schreef Jack Krupansky : >You could index the values in both a "text" and a separate "string" >field. >Then you can query the text field by keyword as well as the string field >by >the full literal valu

Finding the most matching (cf. similar) document to another one

2012-09-07 Thread Jochen Hebbrecht
he list, to get to the best match. Maybe it can generate a kind of percentage/scoring to tell me which document is the closest to Doc 4? Does Lucene have this kind of feature? Thanks in advance for any answer, Jochen

Re: Finding the most matching (cf. similar) document to another one

2012-09-07 Thread Jochen Hebbrecht
Hi qibaoyuan, I tried your second solution, using the scoring data. I think in this way, I could use MoreLikeThis. All documents with a score > X are a possible match :-). Thanks! Jochen 2012/9/7 qibaoyuan > > MAYBE you could alter MLT to make him working on AND >

Re: Finding the most matching (cf. similar) document to another one

2012-09-07 Thread Jochen Hebbrecht
Thanks! Works like a charm :-)! 2012/9/7 Trejkaz > On Fri, Sep 7, 2012 at 6:12 PM, Jochen Hebbrecht > wrote: > > Hi qibaoyuan, > > > > I tried your second solution, using the scoring data. I think in this > way, > > I could use MoreLikeThis. All document

Re: Searching for a search string containing a literal slash doesn't work with QueryParser

2012-10-01 Thread Jochen Hebbrecht
vaone" or "javaOne". How do you solve this in a proper way? Bringing all characters toLowerCase() when indexing them? Jochen 2012/10/1 Jack Krupansky > That's "The escape merely..." > > -- Jack Krupansky > > -Original Message- From: J

Re: Searching for a search string containing a literal slash doesn't work with QueryParser

2012-10-01 Thread Jochen Hebbrecht
TokenStreamComponents(source, sink); } I think this will do the trick too, right? Jochen 2012/10/1 Jack Krupansky > Sorry, I meant apply the filter to the TOKENIZER that the analyzer uses. > > > -- Jack Krupansky > > -Original Message- From: Jack Krupansky > Sen

Optimize: java.lang.IndexOutOfBoundsException

2005-09-14 Thread Jochen Franke
4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) - java Xmx512M Has anybody an idea what causes this problem or experienced something similar? Thanks in advance, Jochen - To unsubscribe, e-ma