Using BinaryDocValues with CustomScoreProvider

2019-05-27 Thread amid
Hi, We implemented our own CustomScoreProvider which used BinaryDocValues to get data on each document and calculate a score for it, the CustomScoreProvider gets a docId and could easily be used with the BinaryDocValues methods when use lucene < 7. We want to move to a newer version and see the B

Re: Solr cache when using custom scoring

2015-07-09 Thread amid
Mikhail, We've now override the equal & hashcode of the custom query to use this new param as well, and it works like charm. Thanks allot, Ami -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-cache-when-using-custom-scoring-tp4216419p4216496.html Sent from the Solr - U

Re: Solr cache when using custom scoring

2015-07-08 Thread amid
No sure I get you, the parameter is passed to solr as a string. It seems like solr use for the caching key only the query, sort and range of documents (from the doc - "This cache holds the results of previous searches: ordered lists of document IDs (DocList) based on a query, a sort, and the range

Solr cache when using custom scoring

2015-07-08 Thread amid
Hi, We are using solr and implemented our own custom scoring. The custom scoring code use a parameter which passed to the solr query, different parameter value will change the score of the same query. The problem which we have is that this parameter is not part of the query caching so running the

Re: Indexing & search list of Key/Value pairs

2015-06-17 Thread amid
Hi, Found the best way to do it (for the ones which will read it in the future). Starting from Solr 4.8 nested documents can be used so for the document we can created child document with the key & value as fields for each ley, using block join queries will close to loop and give the ability to se

RE: The best way to exclude "seen" results from search queries

2015-06-11 Thread amid
Thanks Charles, We though of using multi-valued field but got the feeling it will not be small as our data will grow. Another issue with multi-valued field is that you can't create complex join query, while using a different collection with document with more than one field (e.g. recommendation_da

RE: The best way to exclude "seen" results from search queries

2015-06-11 Thread amid
Thanks allot Charles, This seems to be what I'm looking for. Do you know if join for this amount of documents & user will still have good query performance? also, is there any limitations for the solr architecture once using the "join" method (i.e. sharding)? Many thanks, Ami -- View this mess

The best way to exclude "seen" results from search queries

2015-06-10 Thread amid
Hi, We have a solr index with ~1M documents. We want to give the ability to our users to filter results from queries - meaning they will not shown again for any query of this specific user (we currently have 10K users). You can think of a scenario like a "recommendation engine" which you don't wa

Re: Indexing & search list of Key/Value pairs

2014-09-01 Thread amid
Hi Jack, This can really improve the solution, still it's less robust than an option to search a "pair" (for example if the skills are indexed with an index key, a query like "(skill1:php skill1_years:[2 TO *]) OR (skill2:php skill2_years:[2 TO *] ...). The solution I describe is not really good a

Re: Indexing & search list of Key/Value pairs

2014-09-01 Thread amid
Hi Jack, Thanks for the fast response. I assume that using this technique will have the following limitations: 1) Skill characters will be limited 2) Field name are not analyze and will not be able to get the full search pack (synonym, analyzers...) Am i right? If so do you familiar with other

Indexing & search list of Key/Value pairs

2014-09-01 Thread amid
Hi, I'm using solr and trying to index a list of key/value pairs, the key contains a string with a skill and the value is the years of experience (i.e. someone with 5 years of php and 2 years of ruby). I want to be able to create a query which return all document with a specific skill and range o