SolR : eDismax does not always use the defaultOperator "AND"

2011-08-17 Thread Valentin
I set the defaultOperator at "AND" in shema.xml : 

I use the defType=eDismax in my query. It works very well, but when I want
to use "AND" or "OR" operators, it doesn't use "AND" as the default operator
for the blanks I left without operators.

Examples:

field1:a field2:b does the same thing than field1:a AND field2:b : OK

field1:a OR field2:b : OK, I have all the results that I want

but

field1:a (field2:b OR field2:c) does the same thing than field1:a OR
(field2:b OR field2:c) : that's not OK

How can I force him to use "AND" as the default operator even in that case ?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolR-eDismax-does-not-always-use-the-defaultOperator-AND-tp3261500p3261500.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SolR : eDismax does not always use the defaultOperator "AND"

2011-08-17 Thread Valentin
I had put mm at 4<75%, so if i understand it well, for 4 words or less, it
has to match all the words.

In my tests, i did it with 3 words, so i don't understand the results...


thanks for your answer,

Valentin

--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolR-eDismax-does-not-always-use-the-defaultOperator-AND-tp3261500p3261703.html
Sent from the Solr - User mailing list archive at Nabble.com.


Full sentence spellcheck

2011-08-18 Thread Valentin
I'm trying to configure a spellchecker to autocomplete full sentences from my
query.

I've already been able to get this results:

/"american israel" :
-> "american something"
-> "israel something"/

But i want :

/"american israel" :
-> "american israel something"/

This is my solrconfig.xml :

/
 suggestTextFull
 
  suggest_full
  org.apache.solr.spelling.suggest.Suggester
  org.apache.solr.spelling.suggest.tst.TSTLookup
  text_suggest_full
  suggestTextFull
 




 explicit
 true
 suggest_full
 10
 true


 suggest_full

/

And this is my schema.xml:

/

  
  

  

  
  
  


...

/

I've read somewhere that I have to use spellcheck.q because q use the
WhitespaceAnalyzer, but when I use spellcheck.q i get a
java.lang.NullPointerException

Any ideas ?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3265257.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Full sentence spellcheck

2011-08-19 Thread Valentin
Actually, that's not my problem, I do specify "q". 

Another idea ? It really makes me crazy...

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3267394.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-19 Thread Valentin
I don't think it wil lhelp me, sorry. I just want my query to not be
tokenised, I want it to be considered as a full sentence to correct.

But thanks for your answers, I keep searching.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3267629.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-19 Thread Valentin

Li Li wrote:
> If you don't want to tokenize  query, you should pass spellcheck.q
> and provide your own analyzer such as keyword analyzer.

That's already what I do with my suggestTextFull fieldType, added to my
searchComponent, no ? I've copied my fieldType and my searchComponent on my
first post. The only big difference between your parameters and mine is:

 " UTF-8 ".

But I don't think it resolves the problem of the NullPointerException when i
use spellcheck.q :/


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3267724.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-19 Thread Valentin
My beautiful NullPointer Exception : 


SEVERE: java.lang.NullPointerException
at
org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:476)
at
org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:131)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3267771.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-19 Thread Valentin
My analyser is not empty : 

/

  
  

  

  
  
  
/

and i'm sure there is words in it


I don't know where to find this file
"org.apache.solr.handler.component.SpellCheckComponent.getTokens"

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3267833.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-22 Thread Valentin
I found the thread "Suggester Issues". You said to write a new java class :

package com.civicscience;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

import org.apache.lucene.analysis.Token;
import org.apache.solr.spelling.QueryConverter;

/** 

   
 * Converts the query string to a Collection of Lucene tokens.  

  
 **/
public class SpellingQueryConverter extends QueryConverter  {

  /**   

   
   * Converts the original query string to a collection of Lucene Tokens.   

 
   * @param original the original query string  

  
   * @return a Collection of Lucene Tokens  

  
   */
  @Override
  public Collection convert(String original) {
if (original == null) { 

   
  return Collections.emptyList();
}
Collection result = new ArrayList();
Token token = new Token(original, 0, original.length(), "word");
result.add(token);
return result;
  }

}


But I don't know where and how to write it. Can you help me ?

Moreover, will it change my other spellcheckers too ? I have some other that
I don't want to be modified...

Thanks.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3274956.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-22 Thread Valentin
Thanks, but i have a last question before trying your solution : did you have
the same NullPointerException before ? I want to be sure that is the only
way to resolve my problem before midifying some java files...

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3275380.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-23 Thread Valentin
I tried your solution, it works. But it modify all the spellcheckers that I
made, so that's not a good solution for me (I have an autocomplete and a
regular spellcheck with separated words that I want to keep). 

I tried to move the line "" *into* the requestHandler,
but of course it does not work.

Why I can't just use this evil spellcheck.q ? -_-

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3277847.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Full sentence spellcheck

2011-08-24 Thread Valentin
I've run some tests, and I found that it makes this error when i add a
spellcheck component to a handler and i try to use spellcheck.q

So spellcheck.q works with this kind of use :

http://localhost:8983/solr/db/suggest_full?q=american%20israel&spellcheck.q=american%20israel&qt=spellchecker
(with the original spellchecker of db)

But this spellchecker has the class solr.SpellCheckerRequestHandler that
doesn't have all the options I want (like collation).

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3281189.html
Sent from the Solr - User mailing list archive at Nabble.com.


Adding a Topics (Scope) pulldown for refined initial searches.

2012-03-15 Thread Valentin, AJ
Hello all,

I have installed Solr search on my Drupal 7 installation.  Currently, it works 
as an All search tool.  I'd like to limit the scope of the search with an 
available pull-down to set the topic for searching.

Attached is a screenshot to better visualize what I have to get implemented 
soon.

Regards,
AJ



AJ Valentin
Database Design Engineer III
SRC-Huntsville
o/256.428.9372
http://www.scires.com<http://www.scires.com/>



CONFIDENTIALITY NOTICE: This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message. This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED. If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE: This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR). Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer. In addition, technical data may not be exported or 
transferred to certain countries or specified designated nationals identified 
by U.S. embargo controls without prior export authorization. By accepting this 
email and any attachments, all recipients confirm that they understand and will 
comply with all applicable ITAR, EAR and embargo compliance requirements.



RE: Adding a Topics (Scope) pulldown for refined initial searches.

2012-03-15 Thread Valentin, AJ
Erik,

Thank you, attached is the screenshot I tried to submit.  I'm VERY new to using 
Solr, so I'm going to try and make the best sense of your response with my 
limited experience.

Thank you,
AJ

-Original Message-
From: Erik Hatcher [mailto:erik.hatc...@gmail.com]
Sent: Thursday, March 15, 2012 9:39 AM
To: solr-user@lucene.apache.org
Subject: Re: Adding a Topics (Scope) pulldown for refined initial searches.

Screenshots/attachments don't make it through to the Apache lists, sorry.

As for limiting search results, if you've indexed your topics into a string 
field, then you limit adding fq=field_name:value to your Solr requests.  And 
you can get a list of topics using a 
q=*:*&rows=0&facet=on&facet.field=field_name in the facet area of the response. 
 Hope that helps.

Erik


On Mar 15, 2012, at 10:36 , Valentin, AJ wrote:

> Hello all,
>
> I have installed Solr search on my Drupal 7 installation.  Currently, it 
> works as an All search tool.  I'd like to limit the scope of the search with 
> an available pull-down to set the topic for searching.
>
> Attached is a screenshot to better visualize what I have to get implemented 
> soon.
>
>
> Regards,
> AJ
>
>
>
> AJ Valentin
> Database Design Engineer III
> SRC-Huntsville
> o/256.428.9372
> http://www.scires.com
>
>
> CONFIDENTIALITY NOTICE: This email constitutes an electronic communication 
> within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
> 2510, and its disclosure is strictly limited to the named recipient(s) 
> intended by the sender of this message. This email, and any attachments, may 
> contain confidential and/or proprietary information of Scientific Research 
> Corporation. If you are not a named recipient, any copying, using, disclosing 
> or distributing to others the information in this email and attachments is 
> STRICTLY PROHIBITED. If you have received this email in error, please notify 
> the sender immediately and permanently delete the email, any attachments, and 
> all copies thereof from any drives or storage media and destroy any printouts 
> or hard copies of the email and attachments.
>
> EXPORT COMPLIANCE NOTICE: This email and any attachments may contain 
> technical data subject to U.S export restrictions under the International 
> Traffic in Arms Regulations (ITAR) or the Export Administration Regulations 
> (EAR). Export or transfer of this technical data and/or related information 
> to any foreign person(s) or entity(ies), either within the U.S. or outside of 
> the U.S., may require advance export authorization by the appropriate U.S. 
> Government agency prior to export or transfer. In addition, technical data 
> may not be exported or transferred to certain countries or specified 
> designated nationals identified by U.S. embargo controls without prior export 
> authorization. By accepting this email and any attachments, all recipients 
> confirm that they understand and will comply with all applicable ITAR, EAR 
> and embargo compliance requirements.
>


CONFIDENTIALITY NOTICE:  This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message.  This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
 If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED.  If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE:  This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR).  Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer.  In addition, technical data may not be exported 
or transferred to certain countries or specified designated nationals 
identified by U.S. embargo controls without prior export authorization.  By 
accepting this email and any attachments, all recipients confirm that they 
understand and will comply with all applicable ITAR, EAR and embargo compliance 
requirements.



RE: Adding a Topics (Scope) pulldown for refined initial searches.

2012-03-15 Thread Valentin, AJ
Here is the link to the screenshot I tried to send about my Topic/Scope issue.

http://imageupload.org/en/file/200809/solr-scope.png.html



-Original Message-
From: Valentin, AJ
Sent: Thursday, March 15, 2012 9:47 AM
To: 'solr-user@lucene.apache.org'
Subject: RE: Adding a Topics (Scope) pulldown for refined initial searches.

Erik,

Thank you, attached is the screenshot I tried to submit.  I'm VERY new to using 
Solr, so I'm going to try and make the best sense of your response with my 
limited experience.

Thank you,
AJ

-Original Message-
From: Erik Hatcher [mailto:erik.hatc...@gmail.com]
Sent: Thursday, March 15, 2012 9:39 AM
To: solr-user@lucene.apache.org
Subject: Re: Adding a Topics (Scope) pulldown for refined initial searches.

Screenshots/attachments don't make it through to the Apache lists, sorry.

As for limiting search results, if you've indexed your topics into a string 
field, then you limit adding fq=field_name:value to your Solr requests.  And 
you can get a list of topics using a 
q=*:*&rows=0&facet=on&facet.field=field_name in the facet area of the response. 
 Hope that helps.

    Erik


On Mar 15, 2012, at 10:36 , Valentin, AJ wrote:

> Hello all,
>
> I have installed Solr search on my Drupal 7 installation.  Currently, it 
> works as an All search tool.  I'd like to limit the scope of the search with 
> an available pull-down to set the topic for searching.
>
> Attached is a screenshot to better visualize what I have to get implemented 
> soon.
>
>
> Regards,
> AJ
>
>
>
> AJ Valentin
> Database Design Engineer III
> SRC-Huntsville
> o/256.428.9372
> http://www.scires.com
>
>
> CONFIDENTIALITY NOTICE: This email constitutes an electronic communication 
> within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
> 2510, and its disclosure is strictly limited to the named recipient(s) 
> intended by the sender of this message. This email, and any attachments, may 
> contain confidential and/or proprietary information of Scientific Research 
> Corporation. If you are not a named recipient, any copying, using, disclosing 
> or distributing to others the information in this email and attachments is 
> STRICTLY PROHIBITED. If you have received this email in error, please notify 
> the sender immediately and permanently delete the email, any attachments, and 
> all copies thereof from any drives or storage media and destroy any printouts 
> or hard copies of the email and attachments.
>
> EXPORT COMPLIANCE NOTICE: This email and any attachments may contain 
> technical data subject to U.S export restrictions under the International 
> Traffic in Arms Regulations (ITAR) or the Export Administration Regulations 
> (EAR). Export or transfer of this technical data and/or related information 
> to any foreign person(s) or entity(ies), either within the U.S. or outside of 
> the U.S., may require advance export authorization by the appropriate U.S. 
> Government agency prior to export or transfer. In addition, technical data 
> may not be exported or transferred to certain countries or specified 
> designated nationals identified by U.S. embargo controls without prior export 
> authorization. By accepting this email and any attachments, all recipients 
> confirm that they understand and will comply with all applicable ITAR, EAR 
> and embargo compliance requirements.
>


CONFIDENTIALITY NOTICE:  This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message.  This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
 If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED.  If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE:  This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR).  Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer.  In addition, technical data may not be exported 
or transferred to certain countries or specified design

Adding a 'Topics' pulldown for refined initial searches.

2012-03-16 Thread Valentin, AJ
Hello all,

Yesterday was my first time using this (or any) email list and I think I did 
something wrong.  Anyways, I will try this again.


I have installed Solr search on my Drupal 7 installation.  Currently, it works 
as an 'All' search tool.  I'd like to limit the scope of the search with an 
available pull-down to set the topic for searching.

If I've researched correctly, I think my term 'scope' or 'topic' is the same as 
'clustering'...I may be wrong.

Here is a link to a screenshot for what I have to get implemented soon.
http://imageupload.org/en/file/200809/solr-scope.png.html

Regards,
AJ


CONFIDENTIALITY NOTICE:  This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message.  This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
 If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED.  If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE:  This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR).  Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer.  In addition, technical data may not be exported 
or transferred to certain countries or specified designated nationals 
identified by U.S. embargo controls without prior export authorization.  By 
accepting this email and any attachments, all recipients confirm that they 
understand and will comply with all applicable ITAR, EAR and embargo compliance 
requirements.



How to add/remove/customize search tabs

2012-04-18 Thread Valentin, AJ
I have Apache Solr installed with my Drupal 7 site and noticed some default 
tabs available (Content, Site, Users).  Is there a way to add/change that tabs 
section?


CONFIDENTIALITY NOTICE: This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message. This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED. If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE: This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR). Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer. In addition, technical data may not be exported or 
transferred to certain countries or specified designated nationals identified 
by U.S. embargo controls without prior export authorization. By accepting this 
email and any attachments, all recipients confirm that they understand and will 
comply with all applicable ITAR, EAR and embargo compliance requirements.



Tabs with Apache Solr using Drupal 7

2012-08-10 Thread Valentin, AJ
Hello Solr Experts,

Does anyone know how to active tabs (or scope bar) for the Solr search 
mechanism within Drupal 7?

Thank you.


CONFIDENTIALITY NOTICE: This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message. This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED. If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE: This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR). Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer. In addition, technical data may not be exported or 
transferred to certain countries or specified designated nationals identified 
by U.S. embargo controls without prior export authorization. By accepting this 
email and any attachments, all recipients confirm that they understand and will 
comply with all applicable ITAR, EAR and embargo compliance requirements.



Scope bar?

2012-08-14 Thread Valentin, AJ
Can anyone help me out?  I've tried a number of support paths, but I'm getting 
nowhere.

I need to add a 'Scope Bar' to my Solr search mechanism, so I can let the 
user's search within a given Scope instead of 'All'...if they wish.

It would be like the Drupal.org search (www.drupal.org)

You can either search 'All' (set as default) or the user can set a scope to 
search only in:
'Modules' or 'Themes' or 'Documentation' or 'Forums & Issues' or 'Groups'


CONFIDENTIALITY NOTICE: This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message. This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED. If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE: This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR). Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer. In addition, technical data may not be exported or 
transferred to certain countries or specified designated nationals identified 
by U.S. embargo controls without prior export authorization. By accepting this 
email and any attachments, all recipients confirm that they understand and will 
comply with all applicable ITAR, EAR and embargo compliance requirements.



RE: Scope bar?

2012-08-14 Thread Valentin, AJ
Sort of, but I should have mentioned I'm using a Drupal 7 module.  So 
basically, how it's done there.

My mistake for not mentioning that I'm using Solr with Drupal 7.






-Original Message-
From: Michael Della Bitta [mailto:michael.della.bi...@appinions.com]
Sent: Tuesday, August 14, 2012 8:52 AM
To: solr-user@lucene.apache.org
Subject: Re: Scope bar?

You could pretty easily have your scope bar be a selection from a list of 
canned FilterQueries that you write ahead of time.

Does that make sense?

Michael Della Bitta


Appinions | 18 East 41st St., Suite 1806 | New York, NY 10017 www.appinions.com 
Where Influence Isn't a Game


On Tue, Aug 14, 2012 at 9:39 AM, Valentin, AJ  wrote:
> Can anyone help me out?  I've tried a number of support paths, but I'm 
> getting nowhere.
>
> I need to add a 'Scope Bar' to my Solr search mechanism, so I can let the 
> user's search within a given Scope instead of 'All'...if they wish.
>
> It would be like the Drupal.org search
> (www.drupal.org<http://www.drupal.org>)
>
> You can either search 'All' (set as default) or the user can set a scope to 
> search only in:
> 'Modules' or 'Themes' or 'Documentation' or 'Forums & Issues' or 'Groups'
>
> 
> CONFIDENTIALITY NOTICE: This email constitutes an electronic communication 
> within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
> 2510, and its disclosure is strictly limited to the named recipient(s) 
> intended by the sender of this message. This email, and any attachments, may 
> contain confidential and/or proprietary information of Scientific Research 
> Corporation. If you are not a named recipient, any copying, using, disclosing 
> or distributing to others the information in this email and attachments is 
> STRICTLY PROHIBITED. If you have received this email in error, please notify 
> the sender immediately and permanently delete the email, any attachments, and 
> all copies thereof from any drives or storage media and destroy any printouts 
> or hard copies of the email and attachments.
>
> EXPORT COMPLIANCE NOTICE: This email and any attachments may contain 
> technical data subject to U.S export restrictions under the International 
> Traffic in Arms Regulations (ITAR) or the Export Administration Regulations 
> (EAR). Export or transfer of this technical data and/or related information 
> to any foreign person(s) or entity(ies), either within the U.S. or outside of 
> the U.S., may require advance export authorization by the appropriate U.S. 
> Government agency prior to export or transfer. In addition, technical data 
> may not be exported or transferred to certain countries or specified 
> designated nationals identified by U.S. embargo controls without prior export 
> authorization. By accepting this email and any attachments, all recipients 
> confirm that they understand and will comply with all applicable ITAR, EAR 
> and embargo compliance requirements.
>

CONFIDENTIALITY NOTICE:  This email constitutes an electronic communication 
within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. 
2510, and its disclosure is strictly limited to the named recipient(s) intended 
by the sender of this message.  This email, and any attachments, may contain 
confidential and/or proprietary information of Scientific Research Corporation. 
 If you are not a named recipient, any copying, using, disclosing or 
distributing to others the information in this email and attachments is 
STRICTLY PROHIBITED.  If you have received this email in error, please notify 
the sender immediately and permanently delete the email, any attachments, and 
all copies thereof from any drives or storage media and destroy any printouts 
or hard copies of the email and attachments.

EXPORT COMPLIANCE NOTICE:  This email and any attachments may contain technical 
data subject to U.S export restrictions under the International Traffic in Arms 
Regulations (ITAR) or the Export Administration Regulations (EAR).  Export or 
transfer of this technical data and/or related information to any foreign 
person(s) or entity(ies), either within the U.S. or outside of the U.S., may 
require advance export authorization by the appropriate U.S. Government agency 
prior to export or transfer.  In addition, technical data may not be exported 
or transferred to certain countries or specified designated nationals 
identified by U.S. embargo controls without prior export authorization.  By 
accepting this email and any attachments, all recipients confirm that they 
understand and will comply with all applicable ITAR, EAR and embargo compliance 
requirements.