Re: shards as subset of All Shards

2014-07-19 Thread IJ
Here is one potential design approach: 1. Create a single collection (instead of two collections). Let your schema have a "RecordType" field which can take the values of either "initial" or "follow-up" for documents that are indexed into this collection. 2. Let there be 30 shards - just like you

Re: text search problem

2014-07-19 Thread Erick Erickson
Try adding &debug=all to the query and see what the parsed form of the query is, likely you're 1> using phrase queries, so "broadway hotel" requires both words in the text or 2> if you're not using phrases, you're searching for the AND of the two terms. But debug=all will show you. Plus, take a l

Re: Match query string within indexed field?

2014-07-19 Thread Umesh Prasad
Please ignore my earlier answer .. I had missed that you wanted a match spotting .. So that all the indexed terms must be present in the query ... One way, I can think of is SpanQueries .. But it won't be efficient and won't scale to multiple fields .. My suggestion would be to keep the mapping

Re: Match query string within indexed field?

2014-07-19 Thread Umesh Prasad
*Span Queries for illustration :* During Analysis : Inject startSentinel and endSentinal in your indexed field .. So after analysis your field will look like ... abc def Now during query time, you can expand your query clause programmatic create queries which will look like ( xyz ) OR (

Re: Join and non-Join query give different results

2014-07-19 Thread atawfik
I have figured it out. The reason is simply the type of join in Solr. It is an outer join. Since both filter queries are executed separately, a house that has available documents with discount > 1 or (sd_year:2014 AND sd_month:11) will be returned even though my intention was applying bother cond

Re: Match query string within indexed field?

2014-07-19 Thread Alexandre Rafalovitch
I wonder if AnalyzingInfixSuggester could be useful as an alternative way to approach that issue. See a quick write-up and links at: http://blog.mikemccandless.com/2014/01/finding-long-tail-suggestions-using.html Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resource