Solr caches and document deletes

2010-04-04 Thread Shawn Heisey
I asked this question on Friday evening (US timezone), but nobody's 
responded.  Could be just that it's Easter weekend, but my question was 
a little convoluted, so I'll re-ask it in a simpler way.


If all I'm doing in an index update is deleting documents, it seems that 
it should be possible to keep the existing caches around, and just 
remove references to deleted documents from them, rather than throwing 
them out the window and doing a rewarm.  Is this something that has been 
brought up before, or had an issue filed in Jira?


A slightly related question: If you make a commit with waitSearcher set 
to false, is there a way to then check the status of that commit and 
know when it's completely done?


Another slightly related question:  Is there any way, without changing 
the config file and restarting Solr or reloading the core, to completely 
turn autoCommit off for initial DIH import, then turn it back on for 
updates?  The autoCommit seems to cause issues for my initial import, at 
least on the 1.5-dev that I'm using.  Thinking back to when I was trying 
it with 1.4, the build then worked the same as it does now with maxTime 
and maxDocs both set to 0 - it creates only one .fdt file and multiples 
of all the other files.  Without the explicit settings, it creates lots 
of .fdt files and doesn't delete all the old files when the final 
optimize is done.


I haven't yet tried to look at the source to see if I can get the delete 
behavior I'm after on my own.  I've never been a software developer and 
have very little experience with Java, so jumping into a large work like 
Solr is intimidating.  I'm a system and network administrator, and Perl 
is my drug of choice when I write something, unless it's simple enough 
for shell scripting.  I'm using Perl to write my Solr maintenance system 
right now, which is how I'm coming across issues to discuss here.  I'm 
not using any Solr API in my scripts, just doing GET/POST on the URLs 
with LWP.


If anyone has some pointers about where to start poking around in the 
source, I can take a look.  I'm sure I can get past my unfamiliarity 
with Java's syntax pretty quickly, I just don't really have time to 
figure out the entire program flow on my own.


Thanks,
Shawn



an OR filter query

2010-04-04 Thread Blargy

Is there anyway to use a filter query as an OR clause?

For example I have product listings and I want to be able to filter out
mature items by default. To do this I added: 


  mature:false


But then I can never return any mature items because appending
fq=mature:true will obviously return 0 results because no item can both be
mature and non-mature. 

I can get around this using defaults:


  mature:false


But this is a little hacky because anytime I want to include mature items
with non-mature items I need to explicitly set fq as a blank string.

So is there any better way to do this? Thanks
-- 
View this message in context: 
http://n3.nabble.com/an-OR-filter-query-tp696579p696579.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: an OR filter query

2010-04-04 Thread Rich Cariens
Why not just make the your "mature:false" filter query a default value
instead of always appended?  I.e.:

-snip-

mature:false

-snip-

That way if someone wants mature items in their results the search client
explicitly sets "fq=mature:*" or whatever.

Would that work?

On Sun, Apr 4, 2010 at 3:27 PM, Blargy  wrote:

>
> Is there anyway to use a filter query as an OR clause?
>
> For example I have product listings and I want to be able to filter out
> mature items by default. To do this I added:
>
> 
>  mature:false
> 
>
> But then I can never return any mature items because appending
> fq=mature:true will obviously return 0 results because no item can both be
> mature and non-mature.
>
> I can get around this using defaults:
>
> 
>  mature:false
> 
>
> But this is a little hacky because anytime I want to include mature items
> with non-mature items I need to explicitly set fq as a blank string.
>
> So is there any better way to do this? Thanks
> --
> View this message in context:
> http://n3.nabble.com/an-OR-filter-query-tp696579p696579.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


What does it mean when you see a plus sign in between two words inside synonyms.txt?

2010-04-04 Thread paulosalamat

Hi I'm new to this group,

I would like to ask a question:

What does it mean when you see a plus sign in between two words inside
synonyms.txt?

e.g. 

macbookair => macbook+air

Thanks,
Paulo
-- 
View this message in context: 
http://n3.nabble.com/What-does-it-mean-when-you-see-a-plus-sign-in-between-two-words-inside-synonyms-txt-tp697235p697235.html
Sent from the Solr - User mailing list archive at Nabble.com.