spell check for combined words

2008-01-11 Thread solr_user

Does Solr spell checker have the ability to suggest splitting of combined
words.  So for e.g. if I have got the word "apple" and "computer" in my
index and if I type "applecomputer" then how can I make it suggest 
"apple computer"
-- 
View this message in context: 
http://www.nabble.com/spell-check-for-combined-words-tp14768067p14768067.html
Sent from the Solr - User mailing list archive at Nabble.com.



AlphaNumeric search in Solr

2008-03-14 Thread solr_user

Hi,

  I am trying to do alphanumeric search for terms like "axd110", but I don't
get any results back from Solr.  When I open my index using Luke, I am able
to search for these terms and get results back, so I definitely  know that
the terms are present in the index.  Below is the query section from my solr
schema,

  






  


  Is there anything that I am missing here.

-- 
View this message in context: 
http://www.nabble.com/AlphaNumeric-search-in-Solr-tp16063101p16063101.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: AlphaNumeric search in Solr

2008-03-14 Thread solr_user

Hi Yonik,

  No this index was not generated using Solr.  I just have the index files
without access to the source that generated those files.  Is there a way
that I can change my Solr schema so that it wont split axd110 into two
tokens.




Yonik Seeley wrote:
> 
> Was this index generated with Solr?  If so, what does the index
> analyzer look like for that field?
> WordDelimiterFilter would split axd110 into two tokens, so it must
> have been indexed in a compatible way (see the example schema.xml).
> 
> -Yonik
> 
> On Fri, Mar 14, 2008 at 8:51 PM, solr_user <[EMAIL PROTECTED]> wrote:
>>
>>  Hi,
>>
>>   I am trying to do alphanumeric search for terms like "axd110", but I
>> don't
>>  get any results back from Solr.  When I open my index using Luke, I am
>> able
>>  to search for these terms and get results back, so I definitely  know
>> that
>>  the terms are present in the index.  Below is the query section from my
>> solr
>>  schema,
>>
>>   
>> 
>>
>> >  generateWordParts="1" generateNumberParts="1" catenateWords="0"
>>  catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
>> 
>> 
>> 
>>   
>> 
>>
>>   Is there anything that I am missing here.
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/AlphaNumeric-search-in-Solr-tp16063101p16063101.html
>>  Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AlphaNumeric-search-in-Solr-tp16063101p16063747.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: AlphaNumeric search in Solr

2008-03-16 Thread solr_user

Hi Yonik,

  Removing the WordDelimiterFilter did the trick.  Now I am able to get
results back for alphanumeric search.  What other side effect will removing
the WordDelimiterFilter cause.

Thanks


Yonik Seeley wrote:
> 
> On Fri, Mar 14, 2008 at 10:15 PM, solr_user <[EMAIL PROTECTED]> wrote:
>>   No this index was not generated using Solr.  I just have the index
>> files
>>  without access to the source that generated those files.  Is there a way
>>  that I can change my Solr schema so that it wont split axd110 into two
>>  tokens.
> 
> The ideal answer would be to use the analyzer that generated the index.
> If you don't exactly know, remove the WordDelimiterFilter for starts.
> 
> -Yonik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AlphaNumeric-search-in-Solr-tp16063101p16084533.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: AlphaNumeric search in Solr

2008-03-16 Thread solr_user

Hi Yonik,

  I read some documentation on the WordDelimterFilter.  Just to clarify my
thinking, I understand that if I use WordDelimiterFilter and search for a
term like axd100 it will break it into two tokens "axd" and "100".  But then
when I do my search should Solr match the documents containing both these
tokens?

  In my application when I try to search for "axd 100" I get several
documents back, but when I search for axd100 with WordDelimiterFilter on, I
don't get back any results.  I was assuming that if WordDelimiterFilter
breaks axd100 into two tokens - "axd" and "100", then the search should
behave exactly as if I was searching for the string "axd 100".

Thanks.



Yonik Seeley wrote:
> 
> On Sun, Mar 16, 2008 at 5:43 PM, solr_user <[EMAIL PROTECTED]> wrote:
>>   Removing the WordDelimiterFilter did the trick.  Now I am able to get
>>  results back for alphanumeric search.  What other side effect will
>> removing
>>  the WordDelimiterFilter cause.
> 
> It all depends on what type of matching you want.  WordDelimiterFilter
> is one method of making queries like arati800xl, Atari-800XL, atari
> 800 XL, Atari 800/XL, etc, all match a document containing Atari
> 800XL.
> 
> -Yonik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AlphaNumeric-search-in-Solr-tp16063101p16088635.html
Sent from the Solr - User mailing list archive at Nabble.com.



operator precedence

2008-04-07 Thread solr_user

Hi,

  What is the default operator precedence between AND and OR in SOLR?  For
example if I type a query "A OR B AND C", will it be treated as "(A OR B)
AND C"  OR "A OR (B AND C)"

Thanks
-- 
View this message in context: 
http://www.nabble.com/operator-precedence-tp16541732p16541732.html
Sent from the Solr - User mailing list archive at Nabble.com.



Multiple SpellCheckRequestHandlers

2008-05-05 Thread solr_user

Hi all,

  Is it possible in Solr to have multiple SpellCheckRequestHandlers.  In my
application I have got two different spell check indexes.  I want the spell
checker to check for a spelling suggestion in the first index and if it
fails to get any suggestion from the first index only then it should try to
get a suggestion from the second index.  
  
  Is it possible to have a separate SpellCheckRequestHandler one for each
index?

Solr-User


-- 
View this message in context: 
http://www.nabble.com/Multiple-SpellCheckRequestHandlers-tp17071568p17071568.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Multiple SpellCheckRequestHandlers

2008-05-06 Thread solr_user

And how do I specify in the query which requesthandler to use?



Otis Gospodnetic wrote:
> 
> Yes, just define two instances (with two distinct names) in solrconfig.xml
> and point each of them to a different index.
> 
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> - Original Message 
>> From: solr_user <[EMAIL PROTECTED]>
>> To: solr-user@lucene.apache.org
>> Sent: Tuesday, May 6, 2008 12:16:07 AM
>> Subject: Multiple SpellCheckRequestHandlers
>> 
>> 
>> Hi all,
>> 
>>   Is it possible in Solr to have multiple SpellCheckRequestHandlers.  In
>> my
>> application I have got two different spell check indexes.  I want the
>> spell
>> checker to check for a spelling suggestion in the first index and if it
>> fails to get any suggestion from the first index only then it should try
>> to
>> get a suggestion from the second index.  
>>   
>>   Is it possible to have a separate SpellCheckRequestHandler one for each
>> index?
>> 
>> Solr-User
>> 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Multiple-SpellCheckRequestHandlers-tp17071568p17071568.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>> 
>> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Multiple-SpellCheckRequestHandlers-tp17071568p17088834.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Multiple SpellCheckRequestHandlers

2008-05-06 Thread solr_user

Thanks Otis,

  Actually, I am planning to make use of the qt parameter to specify which
handler should be used for the query.  Would there be any downside to that?



Otis Gospodnetic wrote:
> 
> Hello,
> 
> If you configured "/sc1" and "/sc2", then use something like
> http://../sc1?. for the first one and http://./sc2? for
> the second one.
> 
> Otis 
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> - Original Message 
>> From: solr_user <[EMAIL PROTECTED]>
>> To: solr-user@lucene.apache.org
>> Sent: Tuesday, May 6, 2008 1:57:17 PM
>> Subject: Re: Multiple SpellCheckRequestHandlers
>> 
>> 
>> And how do I specify in the query which requesthandler to use?
>> 
>> 
>> 
>> Otis Gospodnetic wrote:
>> > 
>> > Yes, just define two instances (with two distinct names) in
>> solrconfig.xml
>> > and point each of them to a different index.
>> > 
>> > Otis
>> > --
>> > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>> > 
>> > - Original Message 
>> >> From: solr_user 
>> >> To: solr-user@lucene.apache.org
>> >> Sent: Tuesday, May 6, 2008 12:16:07 AM
>> >> Subject: Multiple SpellCheckRequestHandlers
>> >> 
>> >> 
>> >> Hi all,
>> >> 
>> >>   Is it possible in Solr to have multiple SpellCheckRequestHandlers. 
>> In
>> >> my
>> >> application I have got two different spell check indexes.  I want the
>> >> spell
>> >> checker to check for a spelling suggestion in the first index and if
>> it
>> >> fails to get any suggestion from the first index only then it should
>> try
>> >> to
>> >> get a suggestion from the second index.  
>> >>   
>> >>   Is it possible to have a separate SpellCheckRequestHandler one for
>> each
>> >> index?
>> >> 
>> >> Solr-User
>> >> 
>> >> 
>> >> -- 
>> >> View this message in context: 
>> >> 
>> http://www.nabble.com/Multiple-SpellCheckRequestHandlers-tp17071568p17071568.html
>> >> Sent from the Solr - User mailing list archive at Nabble.com.
>> >> 
>> >> 
>> > 
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Multiple-SpellCheckRequestHandlers-tp17071568p17088834.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>> 
>> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Multiple-SpellCheckRequestHandlers-tp17071568p17090642.html
Sent from the Solr - User mailing list archive at Nabble.com.



result count query

2008-05-14 Thread solr_user

Hi,

  Is there an efficient way to just get the result count of a query issued
to Solr?

Solr-user
-- 
View this message in context: 
http://www.nabble.com/result-count-query-tp17240159p17240159.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: result count query

2008-05-14 Thread solr_user

Thanks Otis,

  Actually what I really want to do is just check whether the query is going
to return any results or not.  I tried the rows=0 thing and that works quite
efficiently.  Just wondering if there is anything even more efficient then
that that will answer whether the query has any hits or not.

Solr-user


Otis Gospodnetic wrote:
> 
> I think specifying rows=0 in the URL gets you that number without giving
> you the actual results.
> 
> 
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> 
> - Original Message 
>> From: solr_user <[EMAIL PROTECTED]>
>> To: solr-user@lucene.apache.org
>> Sent: Wednesday, May 14, 2008 4:53:05 PM
>> Subject: result count query
>> 
>> 
>> Hi,
>> 
>>   Is there an efficient way to just get the result count of a query
>> issued
>> to Solr?
>> 
>> Solr-user
>> -- 
>> View this message in context: 
>> http://www.nabble.com/result-count-query-tp17240159p17240159.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-result-count-query-tp17240818p17243737.html
Sent from the Solr - User mailing list archive at Nabble.com.