sort param could not be parsed as a query, and is not a field that exists in the index: geodist()

2015-04-02 Thread Niraj
*Objective: To find out all locations those are present within 1 KM of the
specified reference point, sorted by the distance from the reference*

curl -i --globoff --negotiate -u XXX:XXX -XGET  -H "Accept:
application/json" \
-X GET
"http://xx:8983/solr/loc_data/select?q=*:*&wt=json&indent=true&start=0&rows=1000&fq=%7B!geofilt%7D&sfield=GEO_LOCATION&pt=25.8227920532,-80.1314697266&d=1&sort=geodist()+asc"


--
{
  "responseHeader":{
"status":400,
"QTime":1,
"params":{
  "d":"1",
  "sort":"geodist() asc",
  "indent":"true",
  "start":"0",
  "q":"*:*",
  "sfield":"GEO_LOCATION",
  "pt":"25.8227920532,-80.1314697266",
  "doAs":"*",
  "wt":"json",
  "fq":"{!geofilt}",
  "rows":"1000"}},
  "error":{
"msg":"*sort param could not be parsed as a query, and is not a field
that exists in the index: geodist()"*,
"code":400}}

Please note that, the query works properly without the geodist() function.
I am newbie to Solr. Please help.

Regards,
Niraj






--
View this message in context: 
http://lucene.472066.n3.nabble.com/sort-param-could-not-be-parsed-as-a-query-and-is-not-a-field-that-exists-in-the-index-geodist-tp4197350.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: sort param could not be parsed as a query, and is not a field that exists in the index: geodist()

2015-04-03 Thread Niraj
I am not able to see the logs, seems like don't have admin privilege for the
same.

Below is my schema details:
* 
   *


Below are the version specifications:
"responseHeader":{
"status":0,
"QTime":447},
  "mode":"solrcloud",
*  "lucene":{
"solr-spec-version":"4.4.0-cdh5.3.2",
"solr-impl-version":"4.4.0-cdh5.3.2 exported - jenkins - 2015-02-24
12:57:59",
"lucene-spec-version":"4.4.0-cdh5.3.2",
"lucene-impl-version":"4.4.0-cdh5.3.2 exported - jenkins - 2015-02-24
12:51:43"},*
  "jvm":{
"version":"1.7.0_55 24.55-b03",
"name":"Oracle Corporation Java HotSpot(TM) 64-Bit Server VM",
"spec":{
  "vendor":"Oracle Corporation",
  "name":"Java Platform API Specification",
  "version":"1.7"},
"jre":{
  "vendor":"Oracle Corporation",
  "version":"1.7.0_55"},
"vm":{
  "vendor":"Oracle Corporation",
  "name":"Java HotSpot(TM) 64-Bit Server VM",
  "version":"24.55-b03"},
"processors":24,





--
View this message in context: 
http://lucene.472066.n3.nabble.com/sort-param-could-not-be-parsed-as-a-query-and-is-not-a-field-that-exists-in-the-index-geodist-tp4197350p4197500.html
Sent from the Solr - User mailing list archive at Nabble.com.


CLOSE_WAIT and high search latency

2016-02-22 Thread Niraj Aswani
Hi,

I am on solr 4.8.1 and running master-slave setup with lots of cores (>3K).
Internally I maintain an instance of HTTPSolrServer for each core that is
reused for querying the respective cores. A request is received by an
intermediary tomcat and forwarded to another tomcat running Solr.

Over the period we see high search latency. Some requests start to take too
long and eventually result into timeouts.

Investigating this, I see that, over the period, a high number of
CLOSE_WAIT sockets (>3300) are building up. Running `netstat -p` seems to
suggest that these sockets were initiated by the intermediary tomcats when
communicating to the Solr.

Questions are:

- Why do we see such high number of CLOSE_WAiT sockets? Shouldn't the
HTTPSolrServer take care of closing these connections after communicating
with the Solr server?

- Does the high number of CLOSE_WAIT have anything to do with search
latency?

Any suggestion on the matter is highly appreciated!

Regards,
Niraj


Re: CLOSE_WAIT and high search latency

2016-02-23 Thread Niraj Aswani
Hi Jacques,

Thank you for your reply. I'll give these parameters a try and report back.
Do you think having higher number of CLOSE_WAIT connections affects the
over all search delivery speed?

Regards,
Niraj

On Tue, Feb 23, 2016 at 2:57 PM, Jacques du Rand 
wrote:

> Try to fiddle with your tcp settings:
>
>  /etc/sysctl.conf
> net.ipv4.tcp_fin_timeout = 30
> net.ipv4.tcp_keepalive_intvl = 2
> net.ipv4.tcp_keepalive_probes = 2
> net.ipv4.tcp_keepalive_time = 180
>
> That should help.
>
>
> On 23 February 2016 at 07:13, Niraj Aswani  wrote:
>
> > Hi,
> >
> > I am on solr 4.8.1 and running master-slave setup with lots of cores
> (>3K).
> > Internally I maintain an instance of HTTPSolrServer for each core that is
> > reused for querying the respective cores. A request is received by an
> > intermediary tomcat and forwarded to another tomcat running Solr.
> >
> > Over the period we see high search latency. Some requests start to take
> too
> > long and eventually result into timeouts.
> >
> > Investigating this, I see that, over the period, a high number of
> > CLOSE_WAIT sockets (>3300) are building up. Running `netstat -p` seems to
> > suggest that these sockets were initiated by the intermediary tomcats
> when
> > communicating to the Solr.
> >
> > Questions are:
> >
> > - Why do we see such high number of CLOSE_WAiT sockets? Shouldn't the
> > HTTPSolrServer take care of closing these connections after communicating
> > with the Solr server?
> >
> > - Does the high number of CLOSE_WAIT have anything to do with search
> > latency?
> >
> > Any suggestion on the matter is highly appreciated!
> >
> > Regards,
> > Niraj
> >
>
>
>
> --
> Jacques du Rand
> Senior R&D  Programmer
>
> T: +27214688017
> F: +27862160617
> E: jacq...@pricecheck.co.za
> <
> https://mail.naspers.com/owa/redir.aspx?SURL=uQ0aY47BwKkgYjLPs4CuWJgrQlRUZlf73Ere0TGrauf5NrymvPnSCG0AYQBpAGwAdABvADoAagBhAGMAcQB1AGUAcwBAAHAAcgBpAGMAZQBjAGgAZQBjAGsALgBjAG8ALgB6AGEA&URL=mailto%3ajacques%40pricecheck.co.za
> >
>


edismax, pf2 and use of both AND and OR parameter

2017-07-30 Thread Niraj Aswani
Hi,

I am using solr 4.4 and bit confused about how does the edismax parser
treat the pf2 parameter when both the AND and OR operators are used in the
query with ps2=0

For example:

pf2=title^100
q=HDMI AND Video AND (Wire OR Cable)

Should I expect it to check the following bigram phrases?

hdmi video
video wire
video cable

Regards
Niraj


Re: edismax, pf2 and use of both AND and OR parameter

2017-07-31 Thread Niraj Aswani
Hi Aman,

Thank you very much your reply.

Let me elaborate my question a bit more using your example in this case.

AFAIK, what the pf2 parameter is doing to the query is adding the following
phrase queries:

(_text_:"system memory") (_text_:"memory oem") (_text_:"oem retail")

There are three phrases being checked here:
- system memory
- memory oem
- oem retail

However, what I actually expected it to look like is the following:
- system memory
- memory oem
- memory retail

My understanding of the edismax parser is that it interprets the AND / OR
parameters correctly so it should generate the bi-gram phrases respecting
the AND /OR parameters as well, right?

Am I missing something here?

Regards,
Niraj

On Mon, Jul 31, 2017 at 4:24 AM, Aman Tandon 
wrote:

> Hi Niraj,
>
> Should I expect it to check the following bigram phrases?
>
> Yes it will check.
>
> ex- documents & query is given below
>
> http://localhost:8983/solr/myfile/select?wt=xml&fl=name&;
> indent=on&q=*System
> AND Memory AND (OEM OR Retail)*&rows=50&wt=json&*qf=_text_&pf2=_text_*
> &debug=true&defType=edismax
>
> 
> 
> 
> 
> A-DATA V-Series 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System
> Memory - OEM
> 
> 
> 
> 
> 
> 
> CORSAIR ValueSelect 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200)
> System Memory - Retail
> 
> 
> 
> 
> 
> 
> CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200)
> Dual Channel Kit System Memory - Retail
> 
> 
> 
> 
>
>
> *Below is the parsed query*
>
> 
> +(+(_text_:system) +(_text_:memory) +((_text_:oem) (_text_:retail)))
> ((_text_:"system memory") (_text_:"memory oem") (_text_:"oem retail"))
> 
>
> In case if you are in such scenarios where you need to knwo what query will
> form, then you could us the debug=true to know more about the query &
> timings of different component.
>
> *And when the ps2 is not specified default ps will be applied on pf2.*
>
> I hope this helps.
>
> With Regards
> Aman Tandon
>
> On Mon, Jul 31, 2017 at 4:18 AM, Niraj Aswani 
> wrote:
>
> > Hi,
> >
> > I am using solr 4.4 and bit confused about how does the edismax parser
> > treat the pf2 parameter when both the AND and OR operators are used in
> the
> > query with ps2=0
> >
> > For example:
> >
> > pf2=title^100
> > q=HDMI AND Video AND (Wire OR Cable)
> >
> > Should I expect it to check the following bigram phrases?
> >
> > hdmi video
> > video wire
> > video cable
> >
> > Regards
> > Niraj
> >
>


unordered autocomplete search

2017-09-04 Thread Niraj Aswani
Hi,

I am using solr 5.5.4.

I would like to perform an unordered autocomplete search however it seems
that it only suggests phrases that start with my term in the query.

For example, in my dictionary I have,

*lamp desk*

When searching for the term "lamp", it is able to show the the suggestion
"lamp desk" as the suggestion is starting with the word "lamp". However,
when I search for the term "desk", it doesn't show any suggestion.

My field in the *managed-schema* is as below:


  


  
  

  


My controller in *solconfig.xml* is defined as the following:



  
default
FuzzyLookupFactory
test.dict
suggest_field
  



  
true
10
  
  
suggest
  


The *query* I fire is:

http://localhost:8983/solr/core1/suggest?q=desk&suggest.build=true

is there anyway, I can get the above scenario working?

Many thanks,
Niraj


Re: unordered autocomplete search

2017-09-04 Thread Niraj Aswani
Hi Mikhali,

Thank you very much for your quick response.

This does seem to fix the issue of unordered words in the autocomplete,
however, then I loose the capability of matching misspelled words.

Is there anything that can be done to combine the functionality of the two?

Regards,
Niraj



On Mon, Sep 4, 2017 at 11:13 AM, Mikhail Khludnev  wrote:

> The first question is, "sourceLocation">test.dict makes sense?
> Then, for me, it looks like a case for AnalyzingInfixLookupFactory
> https://lucidworks.com/2015/03/04/solr-suggester/ rather than
>
>- The FuzzyLookupFactory that creates suggestions for misspelled words
>in fields.
>
>
>
>
> On Mon, Sep 4, 2017 at 11:57 AM, Niraj Aswani 
> wrote:
>
> > Hi,
> >
> > I am using solr 5.5.4.
> >
> > I would like to perform an unordered autocomplete search however it seems
> > that it only suggests phrases that start with my term in the query.
> >
> > For example, in my dictionary I have,
> >
> > *lamp desk*
> >
> > When searching for the term "lamp", it is able to show the the suggestion
> > "lamp desk" as the suggestion is starting with the word "lamp". However,
> > when I search for the term "desk", it doesn't show any suggestion.
> >
> > My field in the *managed-schema* is as below:
> >
> >  > positionIncrementGap="100">
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> > 
> >
> > My controller in *solconfig.xml* is defined as the following:
> >
> > 
> > 
> >   
> > default
> > FuzzyLookupFactory
> > test.dict
> > suggest_field
> >   
> > 
> >
> >  startup="lazy">
> >   
> > true
> > 10
> >   
> >   
> > suggest
> >   
> > 
> >
> > The *query* I fire is:
> >
> > http://localhost:8983/solr/core1/suggest?q=desk&suggest.build=true
> >
> > is there anyway, I can get the above scenario working?
> >
> > Many thanks,
> > Niraj
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
>


Re: unordered autocomplete search

2017-09-05 Thread Niraj Aswani
Hi Mikhail,

Thank you so much for your inpu. I am looking into this and let you know
when I've tried this.

@Walter: indeed, it should be included :). If my code works, I'll post it
here.

Many thanks,
Niraj

On Mon, Sep 4, 2017 at 5:27 PM, Walter Underwood 
wrote:

> This should probably be a feature of the analyzing infix suggester.
>
> Right now, the fuzzy suggester is broken with the file dictionary, so we
> can’t use fuzzy suggestions at all.
>
> wunder
> Walter Underwood
> wun...@wunderwood.org
> http://observer.wunderwood.org/  (my blog)
>
>
> > On Sep 4, 2017, at 4:50 AM, Mikhail Khludnev  wrote:
> >
> > You probably can override AnalyzingInfixSuggester.finishQuery(Builder,
> > boolean) where you can rip clauses from builder and change TermQueries/
> > PrefixQuery to FuzzyQueries. Let me know how it works, please.
> >
> > On Mon, Sep 4, 2017 at 2:27 PM, Niraj Aswani 
> wrote:
> >
> >> Hi Mikhali,
> >>
> >> Thank you very much for your quick response.
> >>
> >> This does seem to fix the issue of unordered words in the autocomplete,
> >> however, then I loose the capability of matching misspelled words.
> >>
> >> Is there anything that can be done to combine the functionality of the
> two?
> >>
> >> Regards,
> >> Niraj
> >>
> >>
> >>
> >> On Mon, Sep 4, 2017 at 11:13 AM, Mikhail Khludnev 
> wrote:
> >>
> >>> The first question is, "sourceLocation">test.dict makes sense?
> >>> Then, for me, it looks like a case for AnalyzingInfixLookupFactory
> >>> https://lucidworks.com/2015/03/04/solr-suggester/ rather than
> >>>
> >>>   - The FuzzyLookupFactory that creates suggestions for misspelled
> words
> >>>   in fields.
> >>>
> >>>
> >>>
> >>>
> >>> On Mon, Sep 4, 2017 at 11:57 AM, Niraj Aswani 
> >>> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> I am using solr 5.5.4.
> >>>>
> >>>> I would like to perform an unordered autocomplete search however it
> >> seems
> >>>> that it only suggests phrases that start with my term in the query.
> >>>>
> >>>> For example, in my dictionary I have,
> >>>>
> >>>> *lamp desk*
> >>>>
> >>>> When searching for the term "lamp", it is able to show the the
> >> suggestion
> >>>> "lamp desk" as the suggestion is starting with the word "lamp".
> >> However,
> >>>> when I search for the term "desk", it doesn't show any suggestion.
> >>>>
> >>>> My field in the *managed-schema* is as below:
> >>>>
> >>>>  >>>> positionIncrementGap="100">
> >>>>  
> >>>>
> >>>>
> >>>>  
> >>>>  
> >>>>
> >>>>  
> >>>> 
> >>>>
> >>>> My controller in *solconfig.xml* is defined as the following:
> >>>>
> >>>> 
> >>>> 
> >>>>  
> >>>>default
> >>>>FuzzyLookupFactory
> >>>>test.dict
> >>>>suggest_field
> >>>>  
> >>>> 
> >>>>
> >>>>  >>> startup="lazy">
> >>>>  
> >>>>true
> >>>>10
> >>>>  
> >>>>  
> >>>>suggest
> >>>>  
> >>>> 
> >>>>
> >>>> The *query* I fire is:
> >>>>
> >>>> http://localhost:8983/solr/core1/suggest?q=desk&suggest.build=true
> >>>>
> >>>> is there anyway, I can get the above scenario working?
> >>>>
> >>>> Many thanks,
> >>>> Niraj
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Sincerely yours
> >>> Mikhail Khludnev
> >>>
> >>
> >
> >
> >
> > --
> > Sincerely yours
> > Mikhail Khludnev
>
>


solr expertise

2017-11-15 Thread Niraj Aswani
Hi,

Apologies if this is not the relevant question for this mailing list but we
are looking for a solr expert and were wondering If this is the right
mailing list to send the job description. If there is any other list,
please can you suggest?

Regards,
Niraj


solr highlighting

2010-03-25 Thread Niraj Aswani

Hi,

I am using the following two parameters to highlight the hits.

"hl.simple.pre=" + URLEncoder.encode("")
"hl.simple.post=" + URLEncoder.encode("")

This seems to work.  However, there is a bit of trouble when the text 
itself contains html markup.


For example, I have indexed a document with the following text in it.
===
something here...
xyz
something here..
===

When I search for the keyword choice, what it does is, it inserts 
"" just before the word choice and "" immediately after 
the word choice. It results into something like below:


<choice minOccurs="1" 
maxOccurs="unbounded">xyzchoice>



I would like it to be something like:

<choice minOccurs="1" 
maxOccurs="unbounded">xyz/choice>


Is there any way to do it such that the highlight content is encoded as 
HTML but the prefix and suffix are not?


Thanks,
Niraj



When I issue a query, it returns all the corret


Re: solr highlighting

2010-03-26 Thread Niraj Aswani

Hi Lance,

Yes, that is once solution but wouldn't it stop people searching for 
something like "characters at the index time, one would have to write a query like 
"<choice".  Am I right?


Thanks,
Niraj

Lance Norskog wrote:

To display html-markup in an html page, it has to be in entity-encoded
form. So, encode the <> as entities in your input application, and
have it indexed and stored in this format. Then, the  are
inserted as normal. This gives you the html text displayable in an
html page, with all words highlightable. And add gt/lt etc. as
stopwords.

At this point you have the element names, attribute names and values,
and text parts searchable and highlightable. If you only want the HTML
syntax parts shown, the PatternReplaceFilter is your friend: with
regex patterns you can pull out those values and ignore the text
parts.

The analysis.jsp page will make it much much easier to debug this.

Good luck!

On Thu, Mar 25, 2010 at 8:21 AM, Niraj Aswani  wrote:
  

Hi,

I am using the following two parameters to highlight the hits.

"hl.simple.pre=" + URLEncoder.encode("")
"hl.simple.post=" + URLEncoder.encode("")

This seems to work.  However, there is a bit of trouble when the text itself
contains html markup.

For example, I have indexed a document with the following text in it.
===
something here...
xyz
something here..
===

When I search for the keyword choice, what it does is, it inserts ""
just before the word choice and "" immediately after the word
choice. It results into something like below:

<choice minOccurs="1"
maxOccurs="unbounded">xyzchoice>


I would like it to be something like:

<choice minOccurs="1"
maxOccurs="unbounded">xyz/choice>

Is there any way to do it such that the highlight content is encoded as HTML
but the prefix and suffix are not?

Thanks,
Niraj



When I issue a query, it returns all the corret






  




Re: solr highlighting

2010-03-26 Thread Niraj Aswani

Hi Lance,

apologies.. please ignore my previous mail.  I'll have a look at the 
PatternReplaceFilter.


Thanks,
Niraj

Niraj Aswani wrote:

Hi Lance,

Yes, that is once solution but wouldn't it stop people searching for 
something like "characters at the index time, one would have to write a query like 
"<choice".  Am I right?


Thanks,
Niraj

Lance Norskog wrote:

To display html-markup in an html page, it has to be in entity-encoded
form. So, encode the <> as entities in your input application, and
have it indexed and stored in this format. Then, the  are
inserted as normal. This gives you the html text displayable in an
html page, with all words highlightable. And add gt/lt etc. as
stopwords.

At this point you have the element names, attribute names and values,
and text parts searchable and highlightable. If you only want the HTML
syntax parts shown, the PatternReplaceFilter is your friend: with
regex patterns you can pull out those values and ignore the text
parts.

The analysis.jsp page will make it much much easier to debug this.

Good luck!

On Thu, Mar 25, 2010 at 8:21 AM, Niraj Aswani 
 wrote:
 

Hi,

I am using the following two parameters to highlight the hits.

"hl.simple.pre=" + URLEncoder.encode("")
"hl.simple.post=" + URLEncoder.encode("")

This seems to work.  However, there is a bit of trouble when the 
text itself

contains html markup.

For example, I have indexed a document with the following text in it.
===
something here...
xyz
something here..
===

When I search for the keyword choice, what it does is, it inserts 
""

just before the word choice and "" immediately after the word
choice. It results into something like below:

<choice minOccurs="1"
maxOccurs="unbounded">xyzchoice>


I would like it to be something like:

<choice minOccurs="1"
maxOccurs="unbounded">xyz/choice>

Is there any way to do it such that the highlight content is encoded 
as HTML

but the prefix and suffix are not?

Thanks,
Niraj



When I issue a query, it returns all the corret






  






Faceted Search!

2007-06-18 Thread niraj tulachan
Hi all,
I'm couple of days old with Solr so I'm very new to this.  However, I'm 
trying to implemented Faceted search somewhat close to CNET shopper.com. 
Instead of using some items (like "camera"), I want to search for documents.  
I'm planning to use Nutch to crawl that website and use Solr to cluster my 
search results.  I tried integrating Nutch with Solr following FooFactory.com's 
blog ..but I could not follow few of the steps as I'm very new to both of 
them.  If anyone of you have implemented, can you please give me suggestion or 
code snippets so that I can implemented them to achieve the "faceted search".  
Any help would be appericated.
  Thanks,
  Niraj  

   
-
You snooze, you lose. Get messages ASAP with AutoCheck
 in the all-new Yahoo! Mail Beta. 

Re: Faceted Search!

2007-06-19 Thread niraj tulachan
Thanks Chris for replying my question.  So I'm thinking about using a CMS and 
when somebody publishes a page in CMS, I would generated this well structure 
XML file and feed that xml to Solr to generate the index on those data. Then, I 
can simply do faceted search using the correct Lucene query format, rite?  Do 
you have any other ideas or comment on my CMS approach?
  Cheers,
  Niraj

Chris Hostetter <[EMAIL PROTECTED]> wrote:
  
: search for documents. I'm planning to use Nutch to crawl that website
: and use Solr to cluster my search results. I tried integrating Nutch
: with Solr following FooFactory.com's blog ..but I could not follow
: few of the steps as I'm very new to both of them. If anyone of you have
: implemented, can you please give me suggestion or code snippets so that
: I can implemented them to achieve the "faceted search". Any help would
: be appericated.

I'm not very familiar with the Nutch/Solr hybrid stuff some people have
done, but faceting requires that you have well structured fields
containing discreet peices of information ... ie: if you want to facet
cameras on manufacturer, megapixels, weight, and battery life, you need
sepertate fields for manufacturer, megapixels, weiht, and mattery life ...
i'm not sure that nutch is going to be able to do that for you.

extracting structured data out of webpages like that without writing
customer parser code for each website layout is a pretty weight data
harvesting problem.

-Hoss



   
-
Got a little couch potato? 
Check out fun summer activities for kids.

Solr web apps!

2007-06-19 Thread niraj tulachan
Hi all,
 I'm very new to Solr and I did try the tutorial and deploy the provided 
demo application. I got the basic understaning how it work.  However, when I 
tried deploying the same demo in Tomcat, it was unsuccessful.  Anyway, what I'm 
trying now is I want to create have a two jsp/servlet( for example: searchjsp 
and resultjsp) where searchjsp send the "search parameter" to Solr server and 
resultjsp receives the result from the Solr server and display it.  My question 
is what is the best way deploy this application/ suggestion on dir 
structure..Any help/suggestion would be appericated.
  Cheers,
  Niraj


 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: Faceted Search!

2007-06-20 Thread niraj tulachan
Hi Chris,
thank you for the reply.  I was reading other posting regarding faceted 
search and seems like they are using the filtering capability of Lucene for 
that.  If that the case, can we have control over the "label" of categories?  
For example: in shopper.com when we search for camera gives us the cluster by 
price, pixal, manufacture and so on.  and if we are feeding the xml file to 
Solr server for faceted search, how can we define the sub-categories.  let's 
say from the above example, the category "price" has different sub-categories 
like "less than 100" ,"100-200"?  I'm guessing, we explicit define this in XML 
feed file, but I could be very wrong.  In any case, can you please give me the 
short example achieve that implementation.  Well, thanks once again.
  Cheers,
  Niraj

Chris Hostetter <[EMAIL PROTECTED]> wrote:
  
: Thanks Chris for replying my question. So I'm thinking about using a
: CMS and when somebody publishes a page in CMS, I would generated this
: well structure XML file and feed that xml to Solr to generate the index
: on those data. Then, I can simply do faceted search using the correct
: Lucene query format, rite? Do you have any other ideas or comment on my
: CMS approach?

that sounds fine ... as long as you have well structured data and you
aren't trying to extract it from unstructured HTML.



-Hoss



 
-
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.

RE: Faceted Search!

2007-06-20 Thread niraj tulachan
Hi Mike,
Currently, I'm just running the demo example provided in the Solr web site 
on my local windows machines.  I was purely looking into generating XML feed 
file and feeding to the Solr server.  However, I was also looking into 
implementing having sub-categories within the categories if that make sense.  
For example, in the shopper.com we have the categories of by price, 
manufactures and so on and with in them,they are sub categories (price is 
sub-cat into <$100, 100-200, 200-300 etc).  I don't have constraint in terms of 
technology.  If I have to implement db server I won't mind implementing it.  
Anyway, plz shine a light on how would you handle this issue.  Any suggestion 
will be appericated.
  Thanks,
  Niraj
Mike Austin <[EMAIL PROTECTED]> wrote:
  Niraj: What environment are you using? SQL Server/.NET/Windows? or something
else?

-Mike

-Original Message-
From: Chris Hostetter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 4:24 PM
To: solr-user@lucene.apache.org
Subject: Re: Faceted Search!



: define the sub-categories. let's say from the above example, the
: category "price" has different sub-categories like "less than 100"
: ,"100-200"? I'm guessing, we explicit define this in XML feed file, but
: I could be very wrong. In any case, can you please give me the short
: example achieve that implementation. Well, thanks once again.

there's nothing "out of the box" from Solrthat will do this, it's
something you would need to implement either in the lcient or in a custom
request handler ... Solr's "Simple Faceting" support is esigned to be just
that: simple. but the underlying methods/mechanisms of computing DocSet
intersetions can be used by any custom requets handler to generate
application specific results.

I've got 3 or 4 indexes that use the out of the box SimpleFacet support
Solr provides, but the major faceting we do (product based facets) all
uses custom request handlers so we can have very exact control on all of
this kind of stuff driven by our data management tools.



-Hoss



   
-
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 

Solr indexing

2007-07-03 Thread niraj tulachan
Hi all,
 I have successfully implemented the Solr so far but there are couple of 
questions I want the solr user to shine a light on them:
  1) In Solr, we create an index by POSTing a XML file to the server.  However, 
is there a way we can do that same process by db(containg metadat) approach?
  2) while updating the pre-exist index, the update won't happen until we do 
the "commit" on it.  However, While updating the index (before doing 'commit'), 
can we still search on that index (to use the old content)?
  Any info will be highly appericated..
  Cheers,
  Niraj

   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

Need help in GeoSpatial Searching into Solr Server

2019-12-23 Thread niraj kumar
I have 100 documents into Solr, type of location field is
*org.apache.solr.schema.TextField.*

I am unable to run any query to search nearby points with reference to that
field.

So if you can help into it or provide some program reference in JAVA with
same kind of implementation.


Thanks,
Niraj