Skip to content

Instantly share code, notes, and snippets.

View gopigujjula's full-sized avatar

Gopikrishna Reddy Gujjula gopigujjula

View GitHub Profile
npm install @sitecore-jss/sitecore-jss @sitecore-jss/sitecore-jss-nextjs
npm init sitecore-jss nextjs
jss start
jss setup
jss deploy config
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SC9SolrDemo.Models
{
public class HighlightResult
{
public string Name { get; set; }
@model IEnumerable<SC9SolrDemo.Models.HighlightResult>
@if (Model != null)
{
<ul>
@foreach (var highlight in Model)
{
<li>
<h1>
@highlight.Name
using SC9SolrDemo.Models;
using Sitecore.ContentSearch;
using Sitecore.ContentSearch.SearchTypes;
using Sitecore.ContentSearch.SolrProvider.SolrNetIntegration;
using SolrNet;
using SolrNet.Commands.Parameters;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
@using SolrNet;
@using Sitecore.ContentSearch.SearchTypes
@model SolrQueryResults<SearchResultItem>
@if (Model != null)
{
foreach (var group in Model.Grouping)
{
foreach (var grp in group.Value.Groups)
using Sitecore.ContentSearch;
using Sitecore.ContentSearch.SearchTypes;
using Sitecore.ContentSearch.SolrProvider.SolrNetIntegration;
using SolrNet;
using SolrNet.Commands.Parameters;
using System.Web.Mvc;
namespace SC9SolrDemo.Controllers
{
public class GroupController : Controller
@using Sitecore.Mvc
<!doctype html>
<html>
<head>
<title>Sitecore Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div>
#define parameters
$prefix = "sc901demo"
$PSScriptRoot = "D:\9"
$XConnectCollectionService = "$prefix.xconnect"
$sitecoreSiteName = "$prefix.local"
$SolrUrl = "https://localhost:8983/solr"
$SolrRoot = "C:\Sitecore9\solr-6.6.2"
$SolrService = "solr662"
$SqlServer = "(local)"
$SqlAdminUser = "sa"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HorseRaceProblem
{
public class HorseRace
{
static void Main(string[] args)
using System;
using System.Net;
using System.IO;
namespace FtpFileCopy
{
public class FtpFileUpload
{
static void Main(string[] args)
{