Re: indexing Free-form text description

2016-03-19 Thread Vis Sw
Thanks a lot Erick and Alex...

I am going through the documents and blogs... thanks for the pointers.

Here is what I tried starting with "text_general"...
a) Looks like it breaks on whitespace for e.g.
for project_collaborator values as "myproject122_USC Dan Forrester ",
"myproject123_USC follow-up John "
If I query...
http://localhost:8081/solr/mycollection/select?q=
*project_collaborator:*Dan%20Fo**=json=true

It returns records with "*Dan*" as well as "fo*" Is it possible to
ignore whitespace and "Dan Fo" can be considered as single term...















b) I also tried replacing "StandardTokenizerFactory" with
"KeywordTokenizerFactory" but results are not accurate.

On Thu, Mar 17, 2016 at 11:28 PM, Alexandre Rafalovitch <arafa...@gmail.com>
wrote:

> Well, Solr ships with nearly 10 examples. So, if you go through them,
> you will know quite a lot. This article (mine) may help you to
> navigate them:
> http://blog.outerthoughts.com/2015/11/oh-solr-home-where-art-thou/
>
> More specifically, as Erick said, your question is too generic. One
> step forward would be to think NOT about the indexing but about the
> search. What you want to search, how you want to find it, what
> granularity you want the information to come back at. Then, you index
> your text in the way to give you that. You will know what specific
> questions to ask then.
>
> Regards,
> Alex.
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 18 March 2016 at 04:08, Vis Sw <vishal@gmail.com> wrote:
> > Hi,
> >
> > I am trying to understand the best way to index and search "free text
> > field" e.g. notes or description...
> >
> > Please suggest what will be the best field type, tokenizer, filter... to
> > query Free-form text description of a field.
> >
> > Any example will be great...
> >
> > Regards
>


indexing Free-form text description

2016-03-19 Thread Vis Sw
Hi,

I am trying to understand the best way to index and search "free text
field" e.g. notes or description...

Please suggest what will be the best field type, tokenizer, filter... to
query Free-form text description of a field.

Any example will be great...

Regards


Re: query against two fields

2016-03-14 Thread Vis Sw
Thanks Erick...

Strange... I am getting Unknown query parser 'complexphrase'...

SOLR ver is 4.7.0 and I can see
org.apache.lucene.queryparser.complexPhrase.ComplexPhraseQueryParser in
lucene-queryparser-4.7.0.jar

http://localhost:8081/solr/collection1/select?q={!complexphrase
inOrder=true}manu:"a* c*"
http://localhost:8081/solr/collection1/select?q=manu:%22a*%20c*%22=complexphrase=manu

On Sat, Mar 12, 2016 at 6:35 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> In a word, ComplexPhraseQueryParser. See:
>
> https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser
>
> so you search for "John de*" or "john d*" etc.
>
>
> Best,
> Erick
>
> On Sat, Mar 12, 2016 at 6:40 AM, Vis Sw <vishal@gmail.com> wrote:
> > Thanks a lot Erick...
> >
> > a) Yes it does return result...
> >
> http://localhost:8081/solr/testCollection/select?q=(project:A%20OR%20collaborator:%22John%20Dave%22)=json
> >
> > Please suggest the best approach for the search to be like...
> > for e.g. if collaborator "John Davis", "John Denver"...
> > John D : should return both results, John De : should return John Denver
> >
> > b) I followed the example in collection1 and indexed it as below...
> >
> >  > multiValued="true"/>
> >  >  stored="true"  multiValued="false" />
> >  >  stored="true"  multiValued="false" />
> > 
> > 
> >
> >  > positionIncrementGap="100">
> >   
> > 
> >  > words="stopwords.txt" />
> > 
> >   
> >   
> > 
> >  > words="stopwords.txt" />
> >  > ignoreCase="true" expand="true"/>
> > 
> >   
> > 
> >
> > On Fri, Mar 11, 2016 at 4:10 PM, Erick Erickson <erickerick...@gmail.com
> >
> > wrote:
> >
> >> I'm assuming that by "Angular UI" you're talking the Solr admin UI
> >> (which, BTW, is not recommended for any user-facing UI).
> >>
> >> > query against two fields;
> >> Isn't this just putting
> >>
> >> project:whatever OR collaborator:whatever
> >>
> >> in the "q" box?
> >>
> >> >  return all fields which we want to display
> >> Just put them in the "fl" box.
> >>
> >> Best,
> >> Erick
> >>
> >> On Fri, Mar 11, 2016 at 10:46 AM, Vis Sw <vishal@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > I need to query against two fields (e.g. search term present in either
> >> > fields project or collaborator) but return all fields which we want to
> >> > display using Angular UI.
> >> >
> >> > Should I combine project and collaborator to some field then query or
> >> there
> >> > is any better way around
> >> >
> >> > Thanks for your suggestion...
> >> >
> >> > Regards
> >> > Val
> >>
>


Re: query against two fields

2016-03-12 Thread Vis Sw
Thanks a lot Erick...

a) Yes it does return result...
http://localhost:8081/solr/testCollection/select?q=(project:A%20OR%20collaborator:%22John%20Dave%22)=json

Please suggest the best approach for the search to be like...
for e.g. if collaborator "John Davis", "John Denver"...
John D : should return both results, John De : should return John Denver

b) I followed the example in collection1 and indexed it as below...








  



  
  




  


On Fri, Mar 11, 2016 at 4:10 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> I'm assuming that by "Angular UI" you're talking the Solr admin UI
> (which, BTW, is not recommended for any user-facing UI).
>
> > query against two fields;
> Isn't this just putting
>
> project:whatever OR collaborator:whatever
>
> in the "q" box?
>
> >  return all fields which we want to display
> Just put them in the "fl" box.
>
> Best,
> Erick
>
> On Fri, Mar 11, 2016 at 10:46 AM, Vis Sw <vishal@gmail.com> wrote:
> > Hi,
> >
> > I need to query against two fields (e.g. search term present in either
> > fields project or collaborator) but return all fields which we want to
> > display using Angular UI.
> >
> > Should I combine project and collaborator to some field then query or
> there
> > is any better way around
> >
> > Thanks for your suggestion...
> >
> > Regards
> > Val
>


query against two fields

2016-03-11 Thread Vis Sw
Hi,

I need to query against two fields (e.g. search term present in either
fields project or collaborator) but return all fields which we want to
display using Angular UI.

Should I combine project and collaborator to some field then query or there
is any better way around

Thanks for your suggestion...

Regards
Val


Re: SOLR / Tomcat JNDI Settings

2007-11-28 Thread vis

Thanks a lot Hossman; this solved it for me.

Essential for me was to understand that I had to create a solr.xml file in
tomcat_home\conf\Catalina\localhost
see hereunder in the quote an example.

The docbase should point to the .war file somewhere on my system.
The value-attribute for the Environment name=solr/home value=    
/ should point to a directory where tomcat can create the lucene/solr index
files.  That home directory should also contain the conf directory from the
example in the solr distribution.

And that was it.
 

hossman wrote:
 
 !--
 
 An example of declaring a specific tomcat context file that
 points at our solr.war (anywhere we want it) and a Solr Home
 directory (any where we want it) using JNDI.
 
 We could have multiple context files like this, with different
 names (and different Solr Home settings) to support multiple
 indexes on one box.
 
 --
 Context
   docBase=/var/tmp/ac-demo/apache-solr-1.2.0/dist/apache-solr-1.2.0.war
   debug=0
   crossContext=true 
 
   Environment name=solr/home
value=/var/tmp/ac-demo/books-solr-home/
type=java.lang.String
override=true /
 /Context
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-JNDI-Settings-tf4753435.html#a14001375
Sent from the Solr - User mailing list archive at Nabble.com.