fq efficiency

2013-11-05 Thread Scott Schneider
Hi all, I'm wondering if filter queries are efficient enough for my use cases. I have lots and lots of users in a big, multi-tenant, sharded index. To run a search, I can use an fq on the user id and pass in the search terms. Does this scale well with the # users? I suppose that, since user

RE: fq efficiency

2013-11-07 Thread Scott Schneider
lyograg.org] > Sent: Tuesday, November 05, 2013 4:35 PM > To: solr-user@lucene.apache.org > Subject: Re: fq efficiency > > On 11/5/2013 3:36 PM, Scott Schneider wrote: > > I'm wondering if filter queries are efficient enough for my use > cases. I have lots and lots of use

RE: fq efficiency

2013-11-07 Thread Scott Schneider
query analyzer doesn't run filters, so it won't prepend the user id. I could prepend the user id myself before calling Solr, but that seems... bad. Scott > -Original Message----- > From: Scott Schneider [mailto:scott_schnei...@symantec.com] > Sent: Thursday, November 07,

RE: search with wildcard

2013-11-21 Thread Scott Schneider
I know it's documented that Lucene/Solr doesn't apply filters to queries with wildcards, but this seems to trip up a lot of users. I can also see why wildcards break a number of filters, but a number of filters (e.g. mapping charsets) could mostly or entirely work. The N-gram filter is another

Solr substring search

2013-09-05 Thread Scott Schneider
Hello, I'm trying to find out how Solr runs a query for "*foo*". Google tells me that you need to use NGramFilterFactory for that kind of substring search, but I find that even with very simple fieldTypes, it just works. (Perhaps because I'm testing on very small data sets, Solr is willing to

Querying a non-indexed field?

2013-09-17 Thread Scott Schneider
Hello, Is it possible to restrict query results using a non-indexed, stored field? e.g. I might index fewer fields to reduce the index size. I query on a few indexed fields, getting a small # of results. I want to restrict this further based on values from non-indexed, stored fields. I can

RE: Querying a non-indexed field?

2013-09-24 Thread Scott Schneider
Ok, thanks for your answers! Scott > -Original Message- > From: Otis Gospodnetic [mailto:otis.gospodne...@gmail.com] > Sent: Wednesday, September 18, 2013 5:36 PM > To: solr-user@lucene.apache.org > Subject: Re: Querying a non-indexed field? > > Moreover, you may be trying to save/optim

Problem loading my codec sometimes

2013-09-24 Thread Scott Schneider
Hello, I created my own codec and Solr can find it sometimes and not other times. When I start fresh (delete the data folder and run Solr), it all works fine. I can add data and query it. When I stop Solr and start it again, I get: Caused by: java.lang.IllegalArgumentException: A SPI class o

RE: Problem loading my codec sometimes

2013-09-25 Thread Scott Schneider
with SPI. What else can I try? Thanks, Scott > -Original Message- > From: Shawn Heisey [mailto:s...@elyograg.org] > Sent: Tuesday, September 24, 2013 5:51 PM > To: solr-user@lucene.apache.org > Subject: Re: Problem loading my codec sometimes > > On 9/24/2013 6:32 PM

RE: Problem loading my codec sometimes

2013-09-25 Thread Scott Schneider
Ah, I fixed it. I wasn't properly including the org.apache.lucene.codecs.Codec file in my jar. I wasn't sure if it was necessary in Solr, since I specify my factory in solrconfig.xml. I think that's why I could create a new index, but not load an existing one. Scott > -Original Message

RE: Problem loading my codec sometimes

2013-09-26 Thread Scott Schneider
Ok, I created SOLR-5278. Thanks again! Scott > -Original Message- > From: Chris Hostetter [mailto:hossman_luc...@fucit.org] > Sent: Wednesday, September 25, 2013 10:15 AM > To: solr-user@lucene.apache.org > Subject: RE: Problem loading my codec sometimes > > > : Ah, I fixed it. I was