Re: Multiple document types

2012-01-25 Thread Simon Willnauer
On Thu, Jan 26, 2012 at 12:05 AM, Frank DeRose wrote: > Hi Simon, > > No, not different entity types, but actually different document types (I > think). What would be ideal is if we could have multiple elements > in the data-config.xml file and some way of mapping each different > element to

Query term counting, again...

2012-01-25 Thread David Olson
Hi all, After much code and forum searching, I've hit a frustrating point that should be more obvious. I've trolled through a ton of postings and messaging on keyword counting and it seems like all the examples cover single word terms. I've got several code bits I've written that can get me what I

Re: Lucene 4 getSpans not retrieving spans

2012-01-25 Thread Stephen Howe
Thanks for the reply, wrapping with the SlowMultiReaderWrapper worked. Also, thanks for the overview on the direction of index readers! On Wed, Jan 25, 2012 at 5:21 PM, Uwe Schindler wrote: > Hi, > > > Goofing off with my index, I ran across this example > > > http://www.lucidimagination.com/blo

RE: Multiple document types

2012-01-25 Thread Frank DeRose
Hi Simon, No, not different entity types, but actually different document types (I think). What would be ideal is if we could have multiple elements in the data-config.xml file and some way of mapping each different element to a different sets of field in the schema.xml file, and to a differe

Ignore this - just testing - restrict fuzzy search to longer words

2012-01-25 Thread Lance
- Lance - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

RE: Lucene 4 getSpans not retrieving spans

2012-01-25 Thread Uwe Schindler
Hi, > Goofing off with my index, I ran across this example > http://www.lucidimagination.com/blog/2009/05/26/accessing-words-around-a- > positional-match-in-lucene/ > for > using span queries to see what else is around a word that hits. Noticeably, > there's a nice getSpans(IndexReader) method th

Re: Cleaning up writer after certain idle time?

2012-01-25 Thread Cheng
Yes, I do have one indexwriter instance for each category. By referring to "dissolving", I mean two things: first, to write all the changes to a local directory for the writer; second, to disable the writer instance. On Wed, Jan 25, 2012 at 5:09 PM, Simon Willnauer < simon.willna...@googlemail.co

Re: Cleaning up writer after certain idle time?

2012-01-25 Thread Simon Willnauer
Hey, On Wed, Jan 25, 2012 at 11:01 PM, Cheng wrote: > Hi, > > I am using multiple writer instances in a web service. Some instances are > busy all the time, while some aren't. I wonder how to configure the writer > to dissolve itself after a certain time of idling, say 30 seconds. what do you me

Re: Multiple document types

2012-01-25 Thread Simon Willnauer
hey Frank, can you elaborate what you mean by different doc types? Are you referring to an entity ie. a table per entity to speak in SQL terms? in general you should get better responses for solr related questions on solr-u...@lucene.apache.org simon On Wed, Jan 25, 2012 at 10:49 PM, Frank DeRos

Cleaning up writer after certain idle time?

2012-01-25 Thread Cheng
Hi, I am using multiple writer instances in a web service. Some instances are busy all the time, while some aren't. I wonder how to configure the writer to dissolve itself after a certain time of idling, say 30 seconds. If the answer is yes, can I do more in the dissolving, such as writing the ch

Multiple document types

2012-01-25 Thread Frank DeRose
It seems that it is not possible to have multiple document types defined in a single solr schema.xml file. If, in fact, this is not possible, then, what is the recommended app server deployment strategy for supporting multiple documents on solr? Do I need to have one webapp instance per document

Re: weightage of each word according to precedence in document

2012-01-25 Thread Ian Lea
If you want particular search terms to be more important than others you can use boosting. See http://lucene.apache.org/java/3_5_0/queryparsersyntax.html#Boosting a Term If you want the order of matched terms to matter, see PhraseQuery or SpanQuery. The latter is more flexible. See http://www.lu