Re: Negative Wildcard Queries

2014-10-30 Thread Erick Erickson
Actually, "hello world*" is possible with the ComplexPhraseQueryParser as of 4.8, see SOLR-1604 (yeah, it's been hanging around for a while). But to your question: Just prefix it with *:*, i.e. q=*:* -hello* Best, Erick On Thu, Oct 30, 2014 at 6:29 PM, Prad Nelluru wrote: > Hi all, > > Is it po

Negative Wildcard Queries

2014-10-30 Thread Prad Nelluru
Hi all, Is it possible to query Lucene with a negative wildcard query like: -hello*? I know wildcards aren't allowed inside phrase queries, so -"hello world*" isn't possible. Thanks, Prad

Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Erick Erickson
Ralf: Here's an end-to-end Payloads example you can use to compare, although it sounds like you've already figured out your immediate problem.. https://lucidworks.com/blog/end-to-end-payload-example-in-solr/ Best, Erick On Thu, Oct 30, 2014 at 1:24 PM, Ralf Bierig wrote: > Found it! I used ano

Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Ralf Bierig
Found it! I used another class that was was still using old code. My bad! Thanks anyway, Ralf On 30.10.2014 20:53, Michael Sokolov wrote: That's a lot of code to eyeball. Have you tried printing out the input data as you are indexing it (just at doc.add)? I am guessing there is some simple va

Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Ralf Bierig
Found it! I used another class that was was still using old code. My bad! Thanks anyway, Ralf On 30.10.2014 20:53, Michael Sokolov wrote: That's a lot of code to eyeball. Have you tried printing out the input data as you are indexing it (just at doc.add)? I am guessing there is some simple va

Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Michael Sokolov
That's a lot of code to eyeball. Have you tried printing out the input data as you are indexing it (just at doc.add)? I am guessing there is some simple variable aliasing issue that I don't see at a glance ... -Mike On 10/30/14 2:03 PM, Ralf Bierig wrote: I want to implement a Lucene Indexer

Payload and Similarity Function: Always same value

2014-10-30 Thread Ralf Bierig
I want to implement a Lucene Indexer/Searcher that uses the new Payload feature to add meta information to tokens. I specifically add weights (i.e. 0-100) to conceptual tags in order to use them to overwrite the standard Lucene TF-IDF weighting. I am puzzled by the behaviour of this and I belie