Using Payloads For Boosting at a Custom Function Query?

2013-11-27 Thread Furkan KAMACI
Hi; I use Solr 4.5.1 Due to my question is more related to Lucene I wanted to ask this question here. Is there any example which uses payloads for boosting at a custom function query? Thanks; Furkan KAMACI

Re: Scanning through inverted index

2013-11-27 Thread Michael Berkovsky
I will take a look. Thanks for your help! On Wed, Nov 27, 2013 at 1:37 PM, Earl Hood wrote: > On Wed, Nov 27, 2013 at 3:31 PM, Michael Berkovsky wrote: > > > My goal is to simply store records term->[doc1, doc2, ] on disk. I > > tried to get these records through docsEnum but it was too slo

Re: Scanning through inverted index

2013-11-27 Thread Earl Hood
On Wed, Nov 27, 2013 at 3:31 PM, Michael Berkovsky wrote: > My goal is to simply store records term->[doc1, doc2, ] on disk. I > tried to get these records through docsEnum but it was too slow. Not sure > if it possible to get them faster, hence the reason for my enquiry.(Perhaps > there is

Re: Scanning through inverted index

2013-11-27 Thread Michael Berkovsky
My goal is to simply store records term->[doc1, doc2, ] on disk. I tried to get these records through docsEnum but it was too slow. Not sure if it possible to get them faster, hence the reason for my enquiry.(Perhaps there is some low level API to scan through the posting list?) Thanks, mb

Re: Scanning through inverted index

2013-11-27 Thread Chris Hostetter
: The goal is to construct the iterator : : Iterator: term -> [doc1, doc2, ...] That iterator already exists -- it's a DocsEnum. Erick's question is what your *end* goal is .. what are you attempting to do that you are asking about accessing a low level iterator over all thd docs that contain

Custom Relevancy Using Field Payloads

2013-11-27 Thread Furkan KAMACI
Hi; I've asked same question at Solr mail list but could not get any answer. I have a payload field at my schema (Solr 4.5.1) When a user searches for a keyword I will calculate the usual score and "if" a match occurs at that payload field I will add payload to the general score (payload * normali

RE: Highlighting phrases

2013-11-27 Thread Scott Smith
Never mind. I figured it out. Thanks anyway. -Original Message- From: Scott Smith [mailto:ssm...@mainstreamdata.com] Sent: Wednesday, November 27, 2013 9:27 AM To: java-user@lucene.apache.org Subject: Highlighting phrases I'm doing some highlighting with the following code fragment:

Re: Scanning through inverted index

2013-11-27 Thread Michael Berkovsky
The goal is to construct the iterator Iterator: term -> [doc1, doc2, ...] It would run through the entire Lucene index . The index contains +100 mln documents Thanks, mb On Wed, Nov 27, 2013 at 5:47 AM, Erick Erickson wrote: > Probably should explain what your end goal here is. > Reconstructi

Highlighting phrases

2013-11-27 Thread Scott Smith
I'm doing some highlighting with the following code fragment: formatter = new SimpleHTMLFormatter(, ); Scorer score = new QueryScorer(myQuery); ht = new Highlighter(formatter, score); ht.setTextFragmenter(new NullFragmenter());

Re: Alphanumeric Field Comparison : Lucene 4.5

2013-11-27 Thread Erick Erickson
P.S. Meant to add that it's almost always a win, if you have the space, to do any pre-computing you can at index time, you only have to pay the cost once. Or you could normalize the field, simply add spaces, i.e. left-pad each number with the appropriate number of spaces so all digit sequences are

Re: Alphanumeric Field Comparison : Lucene 4.5

2013-11-27 Thread Erick Erickson
If this is your complete pattern, can you index two different fields, one text and one numeric, say name_text_sort that holds Bay name_int_sort (make sure it's a number field!) that holds the 1, 2, 11, etc. Then just do a primary sort on name_text_sort and secondary sort on name_int_sort? FWIW, E

Re: Scanning through inverted index

2013-11-27 Thread Erick Erickson
Probably should explain what your end goal here is. Reconstructing the entire document? Just finding out what documents a few words belong to? The former will be painful and lossy, Luke does that for instance. FWIW, Erick On Mon, Nov 25, 2013 at 11:54 AM, Michael Berkovsky < michael.berkov...@g