Re: Suggester configuration queries.

2015-07-14 Thread ssharma7...@gmail.com
Alessandro Benedetti,
Thanks for the links.


Regards,
Sachin Vyas.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950p4217234.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Suggester configuration queries.

2015-07-13 Thread ssharma7...@gmail.com
Hi, 
For my reply dated "Jul 02, 2015; 4:47pm", for my scenario / test data, the
results of Spellchecker of Solr 4.6 & 5.1 are fine.
Also, the results of Suggester of Solr 4.6 & 5.1 are fine.

I was mixing up the two components.


Thanks & Regards, 
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950p4217032.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Suggester configuration queries.

2015-07-13 Thread ssharma7...@gmail.com
Hi,
For my reply dated "Jul 02, 2015; 4:47pm", Actually *there is no difference
in results* for "spellchecker" & "suggester" components in Solr 4.6 and Solr
5.1. I was actually mixing up the two components.


Thanks & Regards,
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950p4217030.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Suggester configuration queries.

2015-07-13 Thread ssharma7...@gmail.com
Hi,
I am using the Solr Terms Component for auto-suggestion, this provides me
the functionality as per my requirements.

https://wiki.apache.org/solr/TermsComponent


Regards,
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950p4217029.html
Sent from the Solr - User mailing list archive at Nabble.com.


Difference in Solr 4.6 & Solr 5.1 spellchecker results.

2015-07-07 Thread ssharma7...@gmail.com
Hi,
I have a working version of Solr 4.6 Spellchecker, the configuration details
are as mentioned below: 

*Solr 4.6 - schema.xml*






















*Solr 4.6 - solrconfig.xml*


none
json
false
true
suggestDictionary
true
5
false


suggest





suggestDictionary
org.apache.solr.spelling.suggest.Suggester
org.apache.solr.spelling.suggest.fst.FSTLookupFactory
suggest
0.
true



*Solr 4.6 Spellcheck query*
http://localhost:8983/solr/portal_documents/suggest?&wt=xml&spellcheck.q=wh

*Solr 4.6 Spellcheck results*


0
0




5
0
2

*when
what
where
which
who*






Now, we are migrating to Solr 5.1 & have the following configuration
details: 
*Solr 5.1 - schema.xml*























*Solr 5.1 - solrconfig.xml*

  
 c_suggest

  default
  suggest
  solr.DirectSolrSpellChecker
  internal
  0.01
  2
  1
  5
  1
  0.01
  .01

  

  

default
on
5
false
xml
true
false


  spellcheck

  

*Solr 5.1 SPellcheck query (same as Solr 4.6)*
http://localhost:8983/solr/portal_documents/spell?&wt=xml&spellcheck.q=wh

*Solr 5.1 Spellcheck results*


0
62





2
0
2

*we
who*






Both the Solr versions have same data & spellcheck index is also built. 
I want to get the same results for Spellchecker in Solr 5.1 as I am getting
in 4.6, but I am not able to get it. 

Can you please suggest an appropriate fix? 
Is there some problem in my Solr 5.1 configuration? 


Regards, 
Sachin Vyas. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Difference-in-Solr-4-6-Solr-5-1-spellchecker-results-tp4216099.html
Sent from the Solr - User mailing list archive at Nabble.com.


Is there a difference in Solr 4.6 Spellchecker & Solr 5.2 Spellchecker results

2015-07-07 Thread ssharma7...@gmail.com
Hi,
The following is my configuration

*Solr 4.6 - schema.xml*






















*Solr 4.6 - solrconfig.xml*


none
json
false
true
suggestDictionary
true
5
false


suggest





suggestDictionary
org.apache.solr.spelling.suggest.Suggester
org.apache.solr.spelling.suggest.fst.FSTLookupFactory
suggest
0.
true



*Solr 4.6 Spellcheck query*
http://localhost:8983/solr/portal_documents/suggest?&wt=xml&spellcheck.q=wh

*Solr 4.6 Spellcheck results*


0
0




5
0
2

*when
what
where
which
who*






Now, we are migrating to Solr 5.1 & have the following configuration
details: 
*Solr 5.1 - schema.xml*























*Solr 5.1 - solrconfig.xml*

  
 c_suggest

  default
  suggest
  solr.DirectSolrSpellChecker
  internal
  0.01
  2
  1
  5
  1
  0.01
  .01

  

  

default
on
5
false
xml
true
false


  spellcheck

  

*Solr 5.1 Spellcheck query (same as Solr 4.6)*
http://localhost:8983/solr/portal_documents/spell?&wt=xml&spellcheck.q=wh

*Solr 5.1 Spellcheck results*


0
62





2
0
2

*we
who*






Both the Solr versions have same data & spellcheck index is also built. 
I want to get the same results for Spellchecker in Solr 5.1 as I am getting
in 4.6, but I am not able to get it. 

Can you please suggest an appropriate fix? 
Is there some problem in my Solr 5.1 configuration? 


Regards, 
Sachin Vyas. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-there-a-difference-in-Solr-4-6-Spellchecker-Solr-5-2-Spellchecker-results-tp4216098.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Suggester configuration queries.

2015-07-06 Thread ssharma7...@gmail.com
Any Suggestions on this ?


Regards,
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950p4216045.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Suggester configuration queries.

2015-07-02 Thread ssharma7...@gmail.com
Erick,
We actaully have a working version of Solr 4.6 Spellchecker, the
configuration details are as mentioned below:

*Solr 4.6 - schema.xml*






















*Solr 4.6 - solrconfig.xml*


none
json
false
true
suggestDictionary
true
5
false


suggest





suggestDictionary
org.apache.solr.spelling.suggest.Suggester
org.apache.solr.spelling.suggest.fst.FSTLookupFactory
suggest
0.
true



*Solr 4.6 Spellcheck query*
http://localhost:8983/solr/portal_documents/suggest?&wt=xml&spellcheck.q=wh

*Solr 4.6 Spellcheck results*


0
0




5
0
2

*when
what
where
which
who*






Now, we are migrating to Solr 5.1 & have the following configuration
details:
*Solr 5.1 - schema.xml*























*Solr 5.1 - solrconfig.xml*

  
 c_suggest

  default
  suggest
  solr.DirectSolrSpellChecker
  internal
  0.01
  2
  1
  5
  1
  0.01
  .01

  

  

default
on
5
false
xml
true
false


  spellcheck

  

*Solr 5.1 SPellcheck query (same as Solr 4.6)*
http://localhost:8983/solr/portal_documents/spell?&wt=xml&spellcheck.q=wh

*Solr 5.1 Spellcheck results*


0
62





2
0
2

*we
who*






Both the Solr versions have same data & spellcheck index is also built.
I want to get the same results for Spellchecker in Solr 5.1 as I am getting
in 4.6, but I am not able to get it.

Can you please suggest an appropriate fix?
Is there some problem in my Solr 5.1 configuration?


Regards,
Sachin Vyas.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950p4215393.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Restricting fields returned by Suggester reult.

2015-07-01 Thread ssharma7...@gmail.com
Alessandro Benedetti,
Thanks for the reply, it answered my query.


Thanks,
Sachin Vyas.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Restricting-fields-returned-by-Suggester-reult-tp4214948p4215193.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Suggester configuration queries.

2015-07-01 Thread ssharma7...@gmail.com
Erick,
As per your reply - *"So for your situation, I'd use a copyField to a
minimally-analyzed field 
and use the index-based suggesters."*

Are you suggesting use of "spellCheck" component in Solr, and in it
"DirectSolrSpellChecker"?


Regards,
Sachin Vyas.






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950p4215190.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Restricting fields returned by Suggester reult.

2015-06-30 Thread ssharma7...@gmail.com
Alessandro Benedetti,
Thanks for the update.

Actually, what I meant by - "Is it possible to restrict the result returned
by Suggeter to "selected" 
fields only?" was like option of "fl" available for querying (/select) in
Solr, wherein there could be some fields as defined in "schema.xml", but we
can pick & choose what we require. This would in effect reduce the amount of
data sent from server.


Regards,
Sachin Vyas.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Restricting-fields-returned-by-Suggester-reult-tp4214948p4215132.html
Sent from the Solr - User mailing list archive at Nabble.com.


Suggester configuration queries.

2015-06-30 Thread ssharma7...@gmail.com
Hi,
I have the following Solr 5.1 configuration:

*schema.xml*

. 
. 


. 
. 



. 
. 





























. 
. 



*solrconfig.xml*
.. 
.. 

   
  textSuggester
  FreeTextLookupFactory
  DocumentDictionaryFactory
  text
  c_text
  true
   
   
  docNameSuggester
  FreeTextLookupFactory
  DocumentDictionaryFactory
  document_name
  c_document_name
  true
   


  

  json
  true
  5

  textSuggester
  docNameSuggester


  suggest

  
.. 
.. 


*Query:*
1) w.r.t. above configuration, is it OK to autocommit on save?

I came across the a link
http://www.signaldump.org/solr/qpod/33101/solr-suggester 
which mentions:

"The index-based spellcheck/suggest just reads terms from the indexed
fields which takes no time to build but suffers from reading indexed
terms, i.e. terms that have gone through the analysis process that may
have been stemmed, lowercased, all that."

So, if the above is correct, the time consumed is for reading data (SELECT).

P.S.I need to buildOnCommit to get the latest tokens in Suggeter. Any better
ideas, suggestion to achieve this?

Regards,
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-configuration-queries-tp4214950.html
Sent from the Solr - User mailing list archive at Nabble.com.


Suggeter Result Exception in specific scenario

2015-06-30 Thread ssharma7...@gmail.com
Hi,
I have the following Solr 5.1 configuration:

*schema.xml*

. 
. 


. 
. 



. 
. 





























. 
. 



*solrconfig.xml*
.. 
.. 

   
  textSuggester
  FreeTextLookupFactory
  DocumentDictionaryFactory
  text
  c_text
  true
   
   
  docNameSuggester
  FreeTextLookupFactory
  DocumentDictionaryFactory
  document_name
  c_document_name
  true
   


  

  json
  true
  5

  textSuggester
  docNameSuggester


  suggest

  
.. 
.. 


1) I get the required results when I enter the Suggeter URL as below:
search text = copy of
http://localhost:8983/solr/collection1/suggestHandler?&wt=xml&suggest.q=copy%20of

2) When I enter the search text as copy of s OR copy of sc OR copy of sch

http://localhost:8983/solr/collection1/suggestHandler?&wt=xml&suggest.q=copy%20of%20s
http://localhost:8983/solr/portal_documents/suggestHandler?&wt=xml&suggest.q=copy%20of%20sc
http://localhost:8983/solr/portal_documents/suggestHandler?&wt=xml&suggest.q=copy%20of%20sch

I get the following exception in Suggetser Result XML:

5000java.lang.NullPointerException
at
org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.decodeWeight(FreeTextSuggester.java:749)
at
org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:612)
at
org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:444)
at
org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.lookup(FreeTextSuggester.java:433)
at
org.apache.solr.spelling.suggest.SolrSuggester.getSuggestions(SolrSuggester.java:216)
at
org.apache.solr.handler.component.SuggestComponent.process(SuggestComponent.java:258)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:222)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1984)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:829)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:446)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:220)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpPa

Restricting fields returned by Suggester reult.

2015-06-30 Thread ssharma7...@gmail.com
Hi,
Is it possible to restrict the result returned by Suggeter to "selected"
fields only?
i.e. Currently, Suggester returns data in following structure (XML),
Can I restrict the Solr (5.1) Suggestor to return ONLY "term" & EXCLUDE
 &
  as per Suggeter result XML below ?






  0
  16


  

  5
  

*document*
  512409557603043072
  


  *document1*
  512409557603043072
  


  *document2*
  512409557603043072
  


  *document3*
  512409557603043072
  


  *document4*
  512409557603043072
  

  

  
  

  3
  

  *document*
  10933347601771902
  


  *documents*
  4373339040708760
  


  *documenting*
  2186669520354380
  

  

  




Regards,
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Restricting-fields-returned-by-Suggester-reult-tp4214948.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Suggester not working.

2015-06-30 Thread ssharma7...@gmail.com
Vincenzo D'Amore,
Yes You are right, it's a typo, I missed it while cleaning the XML to put on
the Solr-User list.
But, *REMOVE *the following line, this was not used in my Solr 5.1
configuration:
* false--> *


Regards,
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-not-working-tp4214086p4214945.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Suggester not working.

2015-06-30 Thread ssharma7...@gmail.com
Vincenzo D'Amore,
The following is my (CURRENT) Working Final Configuration:

*Scheme.xml*

.
.


.
.



.
.































.
.



*solrconfig.xml*
..
..

   
  textSuggester
  FreeTextLookupFactory
  DocumentDictionaryFactory
  text
  c_text
  true
   
   
  docNameSuggester
  FreeTextLookupFactory
  DocumentDictionaryFactory
  document_name
  c_document_name
  true
   


  

  json
  true
  5
  false-->

  textSuggester
  docNameSuggester


  suggest

  
..
..

*Solr Query URL*
http://localhost:8983/solr/collection1/suggestHandler?&wt=xml&suggest.q=document

*Suggester Output*




  0
  16


  

  5
  

  document
  512409557603043072
  


  document1
  512409557603043072
  


  document2
  512409557603043072
  


  document3
  512409557603043072
  


  document4
  512409557603043072
  

  

  
  

  3
  

  document
  10933347601771902
  


  documents
  4373339040708760
  


  documenting
  2186669520354380
  

  

  







--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-not-working-tp4214086p4214929.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Suggester not working.

2015-06-30 Thread ssharma7...@gmail.com
davidphilip cherian & Alessandro Benedetti,
Thanks for you feedback & links, I was able to get the suggestions from
suggester component.

Thanks & Regards,
Sachin Vyas.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-not-working-tp4214086p4214873.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr Suggester not working.

2015-06-25 Thread ssharma7...@gmail.com
Hi,
I am new to Solr & have installed Solr 5.1. I am trying to get the Suggester
component working without any success, the following are the relevant
details:

*Schema.xml*





















*solr-config.xml*


   
  textSuggester
  FuzzyLookupFactory
  DocumentDictionaryFactory
  text
  string
  true
   


  

  true
  10
  textSuggester


  suggest

  

*Query to get suggestions*
http://localhost:8983/solr/portal_documents/suggest?suggest=true&suggest.dictionary=textSuggester&suggest.q=testing

*Above Query Output*


0
31




0






The data is getting indexed properly, as can be seen from image below:
 

Regards,
Sachin Vyas.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-not-working-tp4214086.html
Sent from the Solr - User mailing list archive at Nabble.com.