Multiple partial match

2014-03-03 Thread Zwer
Hi Guys,

Faced with a problem: make query to SOLR *name:co*^5*

It returns me two docs with equal score: {id: 1, name: 'Coca-Cola Company'},
{id: 2, name: Microsoft Corporation}.


How can I boost Coca-Cola Company because it contains more partial matches ?


P.S. All normalization used by TF-IDF engine disabled.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-partial-match-tp4120886.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple partial match

2014-03-03 Thread Zwer
AFAICS tf(name, 'co') returns 0 on the {id:1, name:'Coca-Cola Company'}
because it does not support partial match. 
tf(name, 'company') will return 1



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-partial-match-tp4120886p4120919.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Additive boost function

2014-02-20 Thread Zwer
Jack, 

Could you, please, suggest how to use SOLR query functions to make all
fields boosts added on such query as I specified in the topic ?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Additive-boost-function-tp4118066p4118537.html
Sent from the Solr - User mailing list archive at Nabble.com.


Additive boost function

2014-02-18 Thread Zwer
Hi Guys,

I faced with a problem of additive boosting.

2 fields: last_name and first_name.

User is searching for mike t

Query: (last_name:mike^15 last_name:mike*^7 first_name:mike^10
first_name:mike*^5) AND (last_name:t^15 last_name:t*^7 first_name:t^10
first_name:*^5)

The search result does not meet the expectations because score model
includes others statics of searching terms on the SOLR index. 
According to scoring formula of DefaultSimilarity the result score is a
multiplication.

The question is how to implement additive score model based on my boost
values ?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Additive-boost-function-tp4118066.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Call to Solr via TCP

2013-12-23 Thread Zwer
Thank you, Guys all for the responces



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4107921.html
Sent from the Solr - User mailing list archive at Nabble.com.


Custom PostFilter

2013-12-23 Thread Zwer
Hi Guys,

According to the  article
http://yonik.com/posts/advanced-filter-caching-in-solr/   about Advanced
Filter Caching and few examples ho to implement custom PostFilter in Solr I
implemented my own class that extends ExtendedQueryBase and implements
PostFilter. 
All filtering functionality implemented in my own
org.apache.solr.search.DelegatingCollector in *collect* method.
During testing I found out performance hits, because *collect* method is
called to much times.

Here is the question: Whether it is possible to know about how much
documents were found before/in call *collect* method and return true if it
is number is bigger than some threshold?


Thanks in advance.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Custom-PostFilter-tp4107925.html
Sent from the Solr - User mailing list archive at Nabble.com.


Call to Solr via TCP

2013-12-10 Thread Zwer
Hi Guys,

I am hosting Solr in Jetty servlet container and just would like to know
whether exists some way to communicate with Solr through TCP protocol, not
HTTP?

Thanks for the responses.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Call to Solr via TCP

2013-12-10 Thread Zwer
Maybe I asked incorrectly.


Solr is Web Application, hosted by some servlet container and is reachable
via HTTP.

HTTP is an extension of TCP and I would like to know whether exists some
lower way to communicate with application (i.e. Solr) hosted by Jetty?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4105935.html
Sent from the Solr - User mailing list archive at Nabble.com.